on 02-28-2014 4:23 PM
Hi There,
I am facing a problem regarding Dropdown lists in Subform.
I want the top dropdown list values on all bottom left dropdown lists when I press the button.
The bottom left dropdown lists are in the subforms. So When I use java script like this :
data.Daten.Daten.Daten.Data.DropDown.rawValue = data.Daten.Aktion.DropDown.rawValue;
It does only change first dropdownlist value, not others.
Please provide solution that How can I change all dropdown lists of a Subform dynamically?
Waiting for reply.
Hi Philip,
You are assigning values only the first row.
data.Daten.Daten.Daten.Data.DropDown.rawValue = data.Daten.Aktion.DropDown.rawValue
You have to use the assignment in loop.
1. check number of rows in the table
2. Assign values in loop
// Use the internal table which you binded to dropdown for getting total rows.
var rows = xfa.resolveNodes("****DropDownSrc.DATA[*]").length;
for ( var i =0; i < norows; i++)
{
data.Daten.Daten.Daten.Data[i].DropDown.rawValue = data.Daten.Aktion.DropDown.rawValue
}
Hope i got you correctly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the ADLC version you are using??
If you are using ADLC version above 8.0 you can achieve this requirement through "Action Builder".
---
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.