• 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
numbers on web output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

numbers on web output


  • Subject: numbers on web output
  • From: Wes James <email@hidden>
  • Date: Tue, 10 Aug 2004 13:59:54 -0600

I have been working on one of the samples in the webobjects tutorial.
It is basically adding, editing, removing objects, which show up on a
web page.  The items are output by a worepetition component.

It starts out with Add User then when I add a user it looks like....

----

Edit - Joe likes to eat fish - Delete

Add user

----


Then if I add another object....

----

Edit - Joe likes to eat fish - Delete
Edit - Marta likes to eat melons - Delete

Add user

----

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)?

The output would then look like....

----

1. Edit - Joe likes to eat fish - Delete
2. Edit - Marta likes to eat melons - Delete

Add user

----


thanks,

wj
_______________________________________________
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.


  • Follow-Ups:
    • Re: numbers on web output
      • From: Ray Ackland <email@hidden>
    • Re: numbers on web output
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Best Practice? - error handling
  • Next by Date: Re: New EOGenerator Error
  • Previous by thread: Re: New EOGenerator Error
  • Next by thread: Re: numbers on web output
  • Index(es):
    • Date
    • Thread