AEM FORMS, HOW TO DISPLAY DYNAMIC TABLE INDEX | Community
Skip to main content
Level 2
April 29, 2024
Question

AEM FORMS, HOW TO DISPLAY DYNAMIC TABLE INDEX

  • April 29, 2024
  • 1 reply
  • 697 views

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
April 29, 2024

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.

 

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.)