Expand my Community achievements bar.

AEM FORMS, HOW TO DISPLAY DYNAMIC TABLE INDEX

Avatar

Level 2

Hey!

 

I'm creating a fillable form which also has a dynamic table. I was able to create the dynamic table with no problems, this table contains a cell to display the index row.

 

However I'm not being able to update that index value dynamically, any suggestions?

Oscar_S360_1-1714421616389.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 2

For those having a similar issue...after doing some research, I realized I had to use xfa.resolveNode() function to fix the issue I was having.

Oscar_S360_0-1714425136238.png

 

As you can see I used the form:ready event to loop through the table body and update the cell dynamically based on the length of the table body. I'm leaving a pic of my Hierarchy tree (just in case it's easier to undertand the function I wrote.)

Oscar_S360_1-1714425294319.png