• 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: Using a WOTable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a WOTable


  • Subject: Re: Using a WOTable
  • From: Robert Walker <email@hidden>
  • Date: Tue, 4 May 2004 21:25:23 -0400

Greg,

You would use it in cases where you want to first repeat across for a set number of columns then down. That's pretty much it. This is, however, quite useful in some cases.

I have used it in the past to display product images with the product number, description, price, etc. in each cell of a 4 x 5 grid. I did this by setting my WODisplayGroup to batch in quantities of 20 then I used the WOTable to repeat 4 columns across for 5 rows. My list was bound to displayGroup.displayedObjects(). Item was bound to an instance variable used to enumerate the list, in my case named currentProduct, and was an instance of my Product class. In each table cell I added WOStrings and a WOImage to display the product image and other product info. I also controlled the layout of each cell by nesting a table inside each WOTable cell.

So you could imagine a dynamic table repeating cells with a static table contained within each dynamic cell. This is just one example that came to mind. There really are numerous uses for this element.

Also if you just put a repetition around a cell you would then need a second repetition wrapping the table row. Then you would have to control this nested repetition yourself in code. WOTable does all this for you.

On May 4, 2004, at 9:07 PM, Greg Hulands wrote:

So in what instance would you choose a WOTable over a normal table with a repetition in it?

On 05/05/2004, at 11:02 AM, Robert Walker wrote:

Greg,

WOTable is basically a WORepetition wrapping a table cell. At least that's how you can think about it for connecting your bindings.

WOTable will repeat table cells until it reaches its max column count then insert a second row and repeat cells again up to max column count. Then it will insert a third row and so on...and so on...until it finally runs out of items in its list binding.

You can fill the WOTable's content with anything you want. You can put a WOString to display some text, or anything else you can access from the WOTable's item binding.

That's it.  Good luck...

On May 4, 2004, at 8:43 PM, Greg Hulands wrote:

Hi,
This may sound like a silly question, but how do I use a WOTable?

I cannot find any tutorials on wodev.com, etc. I do not know how it works so this maybe my problem.

If I bind a list and an item to it, how does it know which columns to display? Is there some sort of delegate that gets called to provide this data?

Any help is greatly appreciated.

Regards,
Greg
_______________________________________________
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.



--
"There are 10 kinds of people in the world. Those who think binary and those who don't."





--
Sincerely,
Robert Walker
_______________________________________________
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: 
 >Re: Using a WOTable (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: Using a WOTable
  • Next by Date: Fwd: Delivery Status Notification (Failure)
  • Previous by thread: Re: Using a WOTable
  • Next by thread: Re: Using a WOTable
  • Index(es):
    • Date
    • Thread