Skip to Content
avatar image
Former Member

To read a table value

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 09, 2009 at 09:03 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Dec 10, 2009 at 10:45 AM

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

    Add comment
    10|10000 characters needed characters exceeded