Hi @jordancox
If there is an advanced smartobject behind the list (not a smartbox) which mapped to a SQL service instance you can create a stored procedure which will create neccessary rows and then you just need to refresh the list.
If you’re using something else, then it is possible to create a kind of a while loop with unbound rules and a variable (a datalabel or a parameter).
Something like the following:
Rule 1:
- set variable to a text box value (e.g. 5);
- execute Rule 2.
Rule 2:
- if variable <> 0 then execute Rule 3;
- If variable = 0 then anything to exit the loop
- refresh the list
Rule 3:
- create a line in the list;
- set the variable = variable - 1;
- execute Rule 2
There is also an option to create a workflow with a loop.
Hope this helps.
Hi Ivan,
Because I needed the loop to exist only on the front-end, I implemented your suggestion with the three rules. This worked exactly as I needed, so thanks for your help.
Many thanks.