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

Using keys with ItemListBoxes.

Hi Everyone,

I want the same functionality as 'drop down by key' (which is used in drop downs) available in ItemListBoxes.

Eg: I have a list box of country names and when the user selects one or more countries i should be able to get the country codes.

Thanks and Regards,

Sindhu JR.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

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

    hi ,

    did u try to follow this ? read the context attribute for Country name using 'get attribute'

    
    *   get single attribute
        lo_el_cn_role->get_attribute(
          EXPORTING
            name =  `COUNTRY_DESC`
          IMPORTING
            value = lv_desc ).
    

    u can do it by control wizard or pressing CTRL + F7 and thn click on the radio button Read Context Node/Attribute

    thn u can use the select query to

    fetch the country code where county name is lv_desc.

    rgds,

    amit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 05, 2009 at 02:43 PM

    Unlike the RadioButton and CheckBox, there are not two separate (ByKey and ByIndex) UI elments for the ItemListBox. Therefore you always have to use the get_selected* approach as though it was a ByIndex UI element.

    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.