cancel
Showing results for 
Search instead for 
Did you mean: 

Default selected item in drop down by key

Former Member
0 Kudos

Hello experts, I have this question...

I have a drop down by key UIElement dynamically populated... I want that UIElement to have a default selected item (which I have already defined), so far the selected item is a blank element and I want another to be the default..

Coding example will be appreciated..

Thanx in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, thats even easier xD

just set it !

wdContext.currentYOURNODENAMEelement().setATTRIBUTENAME("desiredvalue");

where desired value is the key value u want selected, and exists in the list of elements (its a valid value).

Regards

Julio Herrera

Former Member
0 Kudos

Thanx Julio, again, you're the man!

Answers (0)