cancel
Showing results for 
Search instead for 
Did you mean: 

To read a table value

Former Member
0 Kudos

Hi,

I want to read a value from the adobe table using javascript or formcalc.

Please let me know the syntax to do that.

Thanks,

Aravind

Accepted Solutions (1)

Accepted Solutions (1)

NoJo
Active Participant
0 Kudos

hi,

do you want to access data of the hierarchy or the data node? Witch language (javascript? Formcalc?) should be used or do you have no preferences?

perhaps if you give an example of the data node and how it is bound to the hierarchy its easier...

norbert

Former Member
0 Kudos

Hi Norbert,

It is a data node, $record.TESTTYPE.DATA[*].FIELD which is linked to a table. I want to access individual values in the

table. Javascript would be fine.

Thanks,

Aravind

Former Member
0 Kudos

Hi Arvind,

Go through this Thread [Read Table Java script|]

Regards

Pradeep Goli

NoJo
Active Participant
0 Kudos

Hi Aravind, I agree to Radeep, use xfa.resolveNodes and then loop aver the table. If you know the table index you can drop the loop.

var TestNodesLen = xfa.resolveNodes("data.<path>TESTTYPE.DATA[*]").length; //for accessing via hierarchy
replace <path> by the structure of hierarchy node

var TestNodesLen = xfa.resolveNodes("xfa.record.TESTTYPE.DATA[*]").length; //for accessing via hierarchy
 
xfa.resolveNode("xfa.record.TESTTYPE.DATA["+ i +"].FIELD").rawValue // i is the index

br

Norbert

Edited by: Norbert Prager on Nov 10, 2009 9:07 AM

Edited by: Norbert Prager on Nov 10, 2009 9:10 AM

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

I guess the question has been answered? Have you achieved what you needed? Please close the thread then. Otto