cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown UI Element

Former Member
0 Kudos

Hi,

I'm having a Dropdown UI element(byIndex).

I have set property deselectable.

By default it is showing first record in the list(Ex: 2.ABC).

I need the deselectable to be the first or default (Ex: 1. ).

Ex: It is displaying as below

1. (deselectable property)

2. ABC

3. DEF

Thankx.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

I had the same problem now and the solution didnt work.

It's

lo_nd_xx->set_lead_selection_index( 0 ).

that helps.

Thanks and Greetings,

Florian

Former Member
0 Kudos

John,

data lo_nd_xx type ref to if_wd_context_node.

data lo_el_xx type ref to if_wd_context_element.

data ls_xx type wd_this->element_xx.

lo_nd_xx = wd_context->get_child_node( name = wd_this->wdctx_xx ).

lo_nd_xx->set_attribute( name = 'YY' value = '1' ).

where xx is the context node and yy is the child attribute to which dropdown is binded.

reward points if helpful