• 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: i don't get it (dynamic table)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i don't get it (dynamic table)


  • Subject: Re: i don't get it (dynamic table)
  • From: "Nathan C. Hampton" <email@hidden>
  • Date: Fri, 12 Sep 2003 16:34:15 -0500

Okay, here's the step-by-step:

1) Open the component in WebObjects Builder.

2) Add the following keys using the 'Edit Source' menu. For each key, be sure to check both 'An instance variable' and 'A method setting the value' under 'Generate source code for.'
+---------+------------------------------------------------------
| Name | Type
+---------+----------------------------------------------------
| colItem | String
| columns | Mutable array of class or value type from step 2
| rows | Mutable array of 'NSMutableArray'
+---------+------------------------------------------------------


3) Using the 'Add Table' button in the toolbar, insert at table with 'Rows' and 'Columns' set to 1.

4) Select the word 'Cell.' If the table is for output, replace 'Cell' with a WOString; if input, a WOTextBox.

5) Select 'colItem' from the list of keys. Drag 'colItem' to the WOString or WOTextBox.

6) Between list of keys and the editing area, and you should see something like this:
<BODY><TABLE><TR><TD><WOString>


7) Click on '<TD>' and add a WORepetition.

8) Select 'columns.' Then drag 'columns' to '<WORepetition>.' Select 'list' from the popup menu that appears.

9) Select 'colItem,' then drag it to '<WORepetition>.' Select 'item' from the pop-up menu.

10) Repeat steps 7-9 for '<TR>,' using 'rows' in step 8, and 'columns' in step 9.

If you select the WORepetitions, the inspector window will show the bindings.

--NCH

On Wednesday, September 10, 2003, at 10:21  PM, tan teck keong wrote:

dear Nathan Hampton,
i still don't get it, if i add a repitition in the
table then how do i bind the row and colulmn value
into the table?
for example,
i create a new table with check the second row is
wrapped in a WORepitition option. after that, i check
the html code. it shown the same code as you shown me
in the previous mail. but now, i have another problem
that how do i bind the row and collumn value into  the
repitition? where to bind?
can you explain more further to me? thank you very
much!!!

best regard and cheer
eric

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
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.

  • Prev by Date: Re: strange behaviour with items in WORepition
  • Next by Date: running a WOApplication
  • Previous by thread: Re: i don't get it (dynamic table)
  • Next by thread: Best approach to handling times
  • Index(es):
    • Date
    • Thread