Skip to Content
author's profile photo Former Member
Former Member

Display data based on InputField data

Hi All,

I've a View with few DropDownByKeys and a Button. I'm using supply function to fill-up DropDownByKeys. Upon data selection in DropDownByKeys, Button is clicked. Data selected should be used as selection criteria to fetch entries from a transparent table and displayed in another view. I could choose data in DropDownByKeys, however when I try to code for OnClick event of Button it gives me error.

I've the below questions:

1. How should I read the selected values from Dropdowns from within the Button event?

2. Is it a good idea to use Supply Function and DropDownByKey when I have an option of using InputFields with F4 help?

3. Incase I use a FM with my coding logic and then Map the Context, I will lose the supply function feature. Is there an way I can use supply function as well as map the context to a FM?

Thanks in Advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2009 at 05:44 PM

    Hi,

    Can u elaborate what error you are getting while trying to fetch the selected value from DDK

    in onAction ?

    Thanks and Regards,

    Divya.S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2009 at 02:59 AM

    Hi,

    1. to read the values in selected in drop down you can read the attribute on th action event of the button.

    lo_el_resume_info->get_attribute(

    EXPORTING

    name = `APPROVE_CV`

    IMPORTING

    value = lv_approve_cv ).

    2. if you have the option of using input field with F4 help then i think its better to use it compared to drop down key.

    Priya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 05:16 AM

    hi Siri ,

    1 declare ur context attributes ( under a context node ) which are binded to the UI elements in ur first view

    in component controller

    2 do mapping ( drag and drop ur cntext node) to ur first view and to the second view which is ur slection criteria

    3 inside the method of ur second view , read the context attributes , using get_Attribute method

    press CONTROL + F7 , control wizard , select the radio button read context node / attribute

    this way u wud be able to achieve ur desired functionality

    rgds,

    amit

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.