AnsweredAssumed Answered

Displaying Counter

Question asked by DrDave on Nov 25, 2008
Latest reply on Nov 27, 2008 by Orlando


Displaying Counter


I have a script with a loop and I want to display a loop counter. To do this, I created a field in the database called zDisplayCounter_n. I then created a layout that contained that field. 


Before I get into the loop, I set $nKounter to 0.

Once I increment the counter within the loop, I SetField[Competitor::zDisplayCounter_n; $nKounter]


The problem is that the counter does not seem to display the counter as in 1, 2, 3, etc. It only show when the loop is done.


Do I have to "refresh" the layout or something?


Thanks for you suggestions.