cancel
Showing results for 
Search instead for 
Did you mean: 

interactiv form problem with nodes

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hallo Sai,

thanks for your replay. I have a offline scenario and I need to access of my datanodes. I have a interne table in sap. I want to known in wich row i am. So I have return the index 0. But i need to have my idnr as return.

I will appreciate and thank in advance

Regars ombessa

Former Member
0 Kudos

Hi,

I am not clear in ur question. Tell me what's ur exact requriment.

Thanks

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sai,

thank you my problem was solved.

Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

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