Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded