Forum Post: RE: {!#LOOP} and before suffix lack functionality

  • Thread starter Thread starter matman
  • Start date Start date
Status
Not open for further replies.
M

matman

Guest
Unfortunately the new Array({!R....#before}) bugs. This is because JavaScript arrays cannot contain only one value. Since I have only one related record, the value of that record ID will become the value of var before. When calling .length on this var, it will return the value, which is something like 13904890, resulting in an infinite loop. Since my after var contains more than one elements, it does work correctly. I will work around the problem using an examination to determine whether the length is larger than 10000. How did you know you could use new Array() with the {!R.....}? I don't see this anywhere in the docs, nor a reason I should expect that would work.

Continue reading...
 
Status
Not open for further replies.
Back
Top