on 10-22-2009 10:02 AM
Hi,
By Calling webservice, I'm filling one table in my interactive form.
How to read each row from that table in java script, so that based on each field value , I want to manipulate other fields behaviour.
Regards,
Ravi
Hi Ravi,
Directly we can Read Table from WebService in JavaScript. But you can have a work around like, have one hidden table and bind all the fields of hidden table to the required table in webservice. No you can Loop that Table in JavaScript and based on each rows value you can manipulate other fields in the Form.
Regards
Pradeep Goli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
For Example say you have your heirarchy view in Adobe Form as follow
- data (root node/subform)
--tablesubform (under data)
--table1(under tablesubform and this is table )
--headerrow (table header)
--row(table row)
// Javascript code on "tablesubform" under event "form ready" or "initialize" or Even on Submit Button "Click" (for click after
// writing script for calling webservice then the below code must be written )
var data1;
var norows = xfa.resolveNodes("data.tablesubform.table1.row[*]").length;
for ( var i =0; i<norows; i++)
{
data1 = xfa.resolveNode("data.tablesubform.table1.row["+i+"]").rawValue;
// write your modifications here using data1 or by directly referencing the row field value
// here you can even change the row's current value
}
Regards
Pradeep Goli
Hi Ravi,
I made a mistake...you are right if you want to access some columns in that row for eg. "Name1", "Name_Address1", "age1".
Note: carefull with your case sensitive while accessing fields.
// Javascript code on "tablesubform" under event "form ready" or "initialize" or Even on Submit Button "Click" (for click after
// writing script for calling webservice then the below code must be written )
var data1,data2,data3;
var norows = xfa.resolveNodes("data.tablesubform.table1.row[*]").length;
for ( var i =0; i<norows; i++)
{
data1 = xfa.resolveNode("data.tablesubform.table1.row["+i+"].Name1").rawValue;
data2 = xfa.resolveNode("data.tablesubform.table1.row["+i+"].Name_Address1").rawValue;
data3 = xfa.resolveNode("data.tablesubform.table1.row["+i+"].age1").rawValue;
// write your modifications here using data1 or by directly referencing the row field value
// here you can even change the row's current value
}
Regards
Pradeep Goli
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.