Adobe LiveCycle designer - How to create dynamic table rows and columns at a time? | Community
Skip to main content
New Participant
Mar 22, 2022 12:55 PM UTC
Solved

Adobe LiveCycle designer - How to create dynamic table rows and columns at a time?

Hi,

 

I have a requirement where I need to dynamically increase the number of rows and columns of a table at a time. If you look in the picture below here the [Name here] column needs to be increased based upon the values from the database and the Month row also needs to be increased dynamically based on the number of months in the database.

 

Please Help me with this. @kosta_prokopiu1,  @poweruserone 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
PowerUserOneAccepted solution
Level 4
Mar 22, 2022 1:14 PM UTC

how are you getting the values from the database? is it in JSON text form?  if so please copy and paste just a sample of the data.

 

also here is a good article on what you are trying to achieve by Stefan Cameron.

Scripting Table Columns - Stefan Cameron on Forms (stefcameron.com)

 

2 replies

PowerUserOneAccepted solution
Level 4
Mar 22, 2022 1:14 PM UTC

how are you getting the values from the database? is it in JSON text form?  if so please copy and paste just a sample of the data.

 

also here is a good article on what you are trying to achieve by Stefan Cameron.

Scripting Table Columns - Stefan Cameron on Forms (stefcameron.com)

 

Translate
New Participant
Mar 22, 2022 2:52 PM UTC

We are getting the values in XML format like below:

 

<root>
<StudentInfo>

<StdInfo>
<StdName> AAAA </StdName>
</StdInfo>
<StdInfo>
<StdName> BBBB </StdName>
</StdInfo>


<MonthData>

<rowData>

<BenAmt>$81.84</BenAmt>
<Mode>Hybrid</Mode>
</rowData>
<rowData>

<BenAmt>$87.84</BenAmt>
<Mode>Public</Mode>
</rowData>

<Month>Sep 2021</Month>

</MonthData>

<MonthData>

<rowData>

<BenAmt>$89.84</BenAmt>
<Mode>Child Care</Mode>
</rowData>
<rowData>

<BenAmt>$80.84</BenAmt>
<Mode>Hybrid</Mode>
</rowData>

<Month>Oct 2021</Month>

</MonthData>
<MonthData>

<rowData>

<BenAmt>$89.84</BenAmt>
<Mode>Child Care</Mode>
</rowData>
<rowData>

<BenAmt>$80.84</BenAmt>
<Mode>Hybrid</Mode>
</rowData>

<Month>Nov 2021</Month>

</MonthData>

</StudentInfo>
</root>

Translate