cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown by key

former_member645692
Participant
0 Kudos

hi all,

i am using dropdownbykey to create selection list for the value range in the domain.

My requirement is to set a initial value in the selection list when the screen opens.As of now it is blank i want the first value in the domain to be defaulted when the screen opens.

Kindly tell me how to do that.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you want to display the first value in your dropdown, assign the index value as follows...in your WDDOINIT method.

NODE NAME->SET_LEAD_SELECTION_INDEX( INDEX = 1 ).

Thanks!

former_member645692
Participant
0 Kudos

Can we use SET_LEAD_SELECTION_INDEX for dropdownbykey?

Will it work?

Former Member
0 Kudos

You can set the default value at the Attribute level itself. Goto Context->select your attribute and set the defualt value over there. Radhika.

Former Member
0 Kudos

● selectedKey

Value from the value set that is selected in the list displayed in the dropdown box.

The following cases can occur:

○ DropDownByKey.selectedKey contains the initial value and the initial value is not contained in the value list: In this case the selected value is an empty string.

○ DropDownByKey.selectedKey contains a different value that is not in the value list: In this case this value is displayed in its internal format in the DropDownByKey field.

○ For the DropDownByKey.selectedKey-Attribut is set to isNullable=true in ContextNodeInfo: An empty entry is inserted in the first position in the DropDown list. When the value is selected, selectedKey is reset to the initial value and the isNull indicator is set for the attribute. If another value is selected, isNull is reset.