cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

AdobeForms - count entries in table (JavaScript)

former_member246634
Active Participant
0 Likes
8,352

Hi everyone,

How can I count rows in table in SFP using JavaScript code? I am using xfa.resolveNodes function as I've seen somewhere else, but it only returns value "1", even if the table has much more rows.

I know that I can do this by counting rows in interface, but I wanted to do this using JavaScript directly on form's layout. Did I choose wrong event or something? Or maybe I am using wrong path in resolveNodes?

I'd be grateful for all help.

View Entire Topic
former_member753791
Participant
0 Likes

First of all change layouts.ready -> Events with script.

Write down the below code.-

xfa.resolveNode("GV_ITEM_COUNT").rawValue = xfa.resolveNodes("$record.IT_PO_ITMEMS.DATA[*]").length