cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down by key

Former Member
0 Kudos

Hi,

I m using a drop down by key which gets its values from the database. Now if I want to set it to a particular value, can I do this? Like on selecting a row of a table the drop down shud display the value which corresponds to the entry in tha table.

thanx

malita

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you can get the key of an item in the dropdown while you select the row of the table,using that key you can set the value in the drop down as follows

wdContext.current<DDBK node>Element().set<Context attribute mapped to selectedKey property of DDBK>(<Key value to be displayed>);

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks 4 the help........

Former Member
0 Kudos

Hi,

U can poplate the dropdown by keeping the values,Descrition in the Simpletype.

Dictionaries->Simple type.

1.Cretae one atribut in the view context and select the type as simpletype.

2.Occarding to selected dropdown u can populate the values in the table.

Let me knw if u hav any doubts,

Regards,

Lavanya.g