• 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: Creating a dynamic table on the fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a dynamic table on the fly


  • Subject: Re: Creating a dynamic table on the fly
  • From: "Goh Keng Boon" <email@hidden>
  • Date: Mon, 28 Jun 2004 09:57:10 +0800 (SGT)

Hi Jonathan, I need something similar also, basically my number of column
is depend on the result from my fetch and the row need to be in a
repetition also. Am I going to have one table in each column and 1
WORepetition in each of the table? Thanks.

KB


> Vincent Coetzee, email@hidden, wrote:
>>I need to create a table of tables at execution time, in that the
>>contents of both the outer table and inner tables are completely
>>dynamic. I am struggling to find an appropriate way of doing this.
>>Given that WO is supposedly completely OO then surely the easiest way
>>would be to create an instance of a WOComponent of some sort and then
>>add the various items to this and then return this from an appropriate
>>method in an appropriate object. I can find no obvious way to do this.
>>Does anyone have any ideas ?
>
> Hasn't anyone told you tables-inside-tables are evil? Yeah, I use them
> too... (grin)
>
> First, build a separate component for your inside table. Use a WOTable
> if  you'd like.
>
> Next, build your outside table component, and inside the WOTable put
> your  first component.
>
> By the way, it appears you're thinking procedurally in terms of
> creating  an instance/populating it/returning it. That's not necessary.
> Just  declaring your component in your .wo file and hooking up it
> bindings is  enough. WebObjects will handle the
> creating/populating/handling for you.
>
> | Jonathan 'Wolf' Rentzsch   http://rentzsch.com
> | Red Shed Software           http://redshed.net
> |     "better" necessarily means "different"
> _______________________________________________
> 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.
_______________________________________________
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: Creating a dynamic table on the fly (From: "Jonathan 'Wolf' Rentzsch" <email@hidden>)

  • Prev by Date: Providing a page title with non-D2W component in D2W page
  • Next by Date: Re: specifying number of rows to fetch
  • Previous by thread: Re: Creating a dynamic table on the fly
  • Next by thread: Creating NSData from NSDictionary..
  • Index(es):
    • Date
    • Thread