AnsweredAssumed Answered

Repeat a script for different fields

Question asked by Ingrid on Jun 10, 2011
Latest reply on Jun 14, 2011 by Ingrid


Repeat a script for different fields


I have a script which filters data in a portal based on the average and  standard deviation of all rows contained in the portal.  The script needs to go through the portal rows several times, which  makes the script quite complex. The portal contains about 10 fields  (different parameters), for  which I want to repeat the procedure. However, now I have 10 almost  identical scripts for each parameter, and if I want to make a change in  the script I  have to do this 10 times, which could easily lead to mistakes. Is it  possible to create a script with e.g. blank field names, which can be  used  for different fields?