Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Re: Setting Max Number of Rows in a Table

Avatar

Level 1

Hi I am a newbie to LC Designer...

I have used Table Using Assistant to create a table with "Body Rows Vary Depending On Data" with two buttons to "add" or "delete" row.

Whilst this works fine, but I don't know how to restrict the number of rows being add, so that the table and the content below it won't flow into another page.

Are there any ways to restrict the number of rows added by users?

Thank you!

3 Replies

Avatar

Level 4

Hello,


You can restrict the addition of new rows into the table

by writing the script in Add button i.e if you dont require to add

rows more than 5 then,

if ( _Row1.count  <  5 )
{
    Table1.Row1.instanceManager.addInstance(1);
}

Thanks,

Debadas.

Avatar

Level 10

You also can restrict occurence of the rows in the bindung tab.

Select the row and then set the max count for the row.

TableMax.png

Avatar

Level 1

Thanks Debadas! It works perfectly!