cancel
Showing results for 
Search instead for 
Did you mean: 

Index of Dropdown.

Former Member
0 Kudos

Hello Friends,

I am displaying few value in dropdown (of type dropdown by Index ). When i select any value from the dropdown i want to fetch the Index of that perticular value please note i am not talking about the dropdown value i want to fetch the key. I stuckup inbetween ..need suggestion.

Thanks In Advance.

Satya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to all of you .

Former Member
0 Kudos

Hi,

If you want to find out the index of the value selected in the drop down , use the method if_wd_context_node->get_lead_selection_index( ).

If you want to find out the key for the value selected in the drop down , first get the attribute

using the value of the attribute you can easily get the key by using a read condition.

Regards,

Srinivas.

Former Member
0 Kudos

Hi Srinivas,

Thanks, i can see the index in debug mode for LEAD_SELECTION_INDEX. But i dont know how to do the coding for this .

Can you send me the sample code.

Thanks,

Satya

Former Member
0 Kudos

Hi Srinivas,

Sorry to ask you a simple question..Problem solved . Thanks to all.

former_member187452
Contributor
0 Kudos

Hi,

You can get the Index of the Dropdown using IF_WD_CONTEXT_NODE ~ GET_LEAD_SELECTION_INDEX.

Regards,

Bharat

Former Member
0 Kudos

Hi Bharat,

can you please give me in details ...

Thanks,

Satya