on 03-24-2011 5:53 PM
Hi Guru
i have problem with my js code. my scenario is offline interactiv form. I need to have the node of my it. But i receive only 0 as result not the data row. Please could do help me ?
my js code.
var rowIndex = this.parent.index;
xfa.host.messageBox("Index: " + rowIndex);
var theFields = xfa.resolveNodes("xfa.myMainPage.mySubForm.myTable.myRow.DATA[*].idNR");
var aString = "";
var aString = aString + xfa.resolveNode("myMainPage.mySubForm.myTable.myRow\"rowIndex\".idnr").rawValue;
var i = 0;
aString = aString + theFields.item(i).rawValue;
xfa.host.messageBox("Wert: " + aString);
var rowIndex = this.parent.index;
xfa.host.messageBox("Index: " + rowIndex);
Thanks in advance.
Regards, ombessa
Hi,
I hope you will get some idea from this help document.
http://help.adobe.com/en_US/livecycle/es/lcdesigner_scripting_reference.pdf
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dear all,
I need to access the value of a field of a table row in javascript?
for example: table car with Colums COUNTRY, PLZ and CITY,idnr
In the data-view it's
F4_CITY
--DATA
---idnr
-
-
COUNTRY
-
-
PLZ
-
-
CITY
and i will want to wich row and value like idnr. and this will be use in the second table in drop & drop list .
hier is my code.
var rowIndex = this.parent.index;
xfa.host.messageBox("Index: " + rowIndex);
var theFields = xfa.resolveNodes("xfa.form.data.car.DATA[*].idNR");
var aString = "";
var aString = aString + xfa.resolveNode("table.table3.DATA["rowIndex"].idnr").rawValue;
var i = 0;
aString = aString + theFields.item(i).rawValue;
xfa.host.messageBox("Wert: " + aString);
var rowIndex = this.parent.index;
xfa.host.messageBox("Index: " + rowIndex);
how to loop over this table and access the fiel values?? when i check this and run i have onlx ý message box index = 0 not the idnr. the scenario is offline
Thanks in advace
Regards
Edited by: ombessa on Mar 25, 2011 9:44 AM
Mate what I understood is, you need the idnr field value of nth Index. and I believe you know where and when to find the Nth value right.
Example: in your table lets say you have a button on each row.
when you click on button in 4th row, you need the idnr value of the 4th row right...?
for the above example have the script below on the click event of the button.
var rowIndex = this.parent.index;
var idnrValue = xfa.resolveNode("table.table3.Data["+rowIndex+"].idnr").rawValue;
Hope this helps you,
Cheers,
Sai
Hi Sai,
Thanks , i have as result only my the message index = 0. I need with my index to search in row. in this case will be my idnr field . I need to nkow in wich row i am . Index box message with index and after ok click i need the field idnr.But is not working , i don't Know why ? I don't have acces of my rawvalue. i need to acces of my nodes.
Thanks in advance.
Regards
Edited by: ombessa on Mar 25, 2011 10:27 AM
Hi Mate,
I couldn't gey you quite clear, Can you please brief
whats your requirement.
What is your structure looks like
What is your approach to implement the requirement.
What is the problem your facing.
Cheers,
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.