cancel
Showing results for 
Search instead for 
Did you mean: 

Two DropDownBy Index with one source

Former Member
0 Kudos

Hi everybody

I try use two DropDownByIndex elements with identical data, so i would like use only one collection with list items. Is that possible, that dropDown elements are independent in this scenario? I try, and when I click first element, the second is modified too:( That is logical (only one current element in node with items for dropdown list) but maybe is that possible to come round this problem?

Regadrs Bogdan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Create two ContextNode/ContextAttributes with the same data and assign the source of the DropDown to differentContext.

Regards, Anilkumar

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks

That is unfortunately that, why I was epxected

Possible that is good idea to move the selection state from context node to UI element in future WD version?

once more thanks everybody

to next time

Former Member
0 Kudos

Hi Anilkumar

That solution is simply, I know, but that displease me - I think, redundancy is dangerous and not elegant.

Regards Bogdan

Former Member
0 Kudos

The drop-down by index element acts on the lead selection of the context node it is bound to. So you have to use different nodes if you want different selection states.

You could encapsulate the logic to create the node elements in a method and call this method for each node. The method would use the generic context API.

Armin