Re: numbers on web output
Re: numbers on web output
- Subject: Re: numbers on web output
- From: Ray Ackland <email@hidden>
- Date: Wed, 11 Aug 2004 09:13:17 +1200
Actually, there is a simple way of doing this (as there often is). In
your repetition bindings there is an index binding. Connect this to
some variable in your class files, then insert this variable in the
form as a string.
WORepetition will update the mentioned variable as it goes through all
the iterations, and the form will display the current index in the
place you specify.
I don't remember whether it is 0 based though, so you may need to add
one to the variable value when displaying it.
r.
On 11/08/2004, at 7:59, Wes James wrote:
How can I add the output of a variable "lineCount" at the beginning of
each line. I would have to put a lineCount variable in Main? then do
a lineCount++; somewhere and then in the WebObects builder link it to
the WOString, but where do I do the increment (lineCount must be
incremented as the WORep component is spitting the text out)?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.