on 06-25-2010 2:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.