• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: numbers on web output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >numbers on web output (From: Wes James <email@hidden>)

  • Prev by Date: Re: numbers on web output
  • Next by Date: Re: WhyWebObjects.com Info
  • Previous by thread: Re: numbers on web output
  • Next by thread: I am stumped.
  • Index(es):
    • Date
    • Thread