cancel
Showing results for 
Search instead for 
Did you mean: 

Interaction between two drop down elements

Former Member
0 Kudos

Hi

I have two dropdowns A and B. A has list of 25 items and B has 3 Items which are also in A. (basically items in B are

subset of A).

I have a situation where if user selects an item in B , same item in A has to be selected automatically. Please advise me of some ideas.

Thanks,

Jai

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Jai,

Create method to fill data and lead select for A in on select event of B.

- Find current selected element in B

- use for loop to filling data in A and inside for loop use if loop using equalignore case for idendified number for lead selected

- after for lop set lead selection for element in A.

Hope it will helps

Regards

Arun

Answers (2)

Answers (2)

former_member214651
Active Contributor
0 Kudos

Hi,

Try this if u are using DD by Key:

1. Get the selected value from DD 'B'.

2. Set the selected value of DD 'A' to the same value.

This will work if u are using DD by key and if the Key values are same.

Eg: - If you have seleccted value X in DD 'B' which has key 'X1', then If DD 'A' also contains the same 'X' u can set it directly.

wdContext().currentContextElement().setDDA(wdContext().currentContextElement().getDDB());

Regards,

Poojith MV

nikhil_bose
Active Contributor
0 Kudos

nodeA -> DropDown A

nodeB -> DropDown B

On selection of DropDown B, iterate the nodeA to find the selected Value, and set the lead selection of DropDown A.

cheers,

Nikhil Bose