How to Conditionaly resize a table.

Hello,

I am working with a migration from PPV7 to Connect, on the designer I have the need to conditionaly resize a couple of tables, for example, its a account status, I have 3 boxes (tables, as in connect I can find a way to do Boxes) with variable data, if number of late payment exceed 2, then a new box appear in the same space where the other three are and rezise all the boxes so the new box can fit.

Thanks for your help.

An easier way to go about this would probably be to create two separate snippets: one for each of the tables.

Then use a script to conditionally load the correct snippet or table:

if (record.fields.numberOfLatePayments > 2){

results.loadhtml("snippets/table1.html");

}
else{
results.loadhtml(“snippets/table2.html”);
}

More examples on the loadhtml() function is available here:

http://help.objectiflune.com/EN/pres-connect-user-guide/1.4/#designer/API/loadhtml.htm?