Hi Comunity,
I need to create a Collection dinamically depending on the value of a variable. The name of the collection must be always the same because after I show the content in a table but the data source must be different: This is the code I'm trying to use:
Switch(
Last(Linea).Value;
"Renewables"; ClearCollect(Plani; PlaniRen);
"Corporate"; ClearCollect(Plani; PlaniCorp);
"Liberalized"; ClearCollect(Plani; PlaniLib);
"Networks"; ClearCollect(Plani; PlaniNet)
);;
If I use only one row, the code works fine but once I add additional line, the system shows me an error in the ClearCollect sentence (Invalid arguments).
Does somebody know how to manage?
Thanks in advanced,
Edorta