Re: [Newbie] WOHyperlinks with Id
Re: [Newbie] WOHyperlinks with Id
- Subject: Re: [Newbie] WOHyperlinks with Id
- From: Deirdre Saoirse Moen <email@hidden>
- Date: Mon, 26 Apr 2004 17:56:16 -0700 (PDT)
On Mon, 26 Apr 2004, Lucas Haley wrote:
> I have a WORepetition in a table set up, listing off dates and
> headlines for a news archive. I would like to have each headline be a
> hyperlink to reload the current page with the related news item
> content. The way I figure it is that I would need to make each WOString
> headline be contained in a WOHyperlink. This would then be bound to an
> action that sets a key, and returns null. But I have yet to get into
> the WebObjects mindset, and don't know how to get the newsId key from
> the WORepetition and into the next page.
You don't have to pass the key -- pass an reference to the object itself
(the item referenced in the WORepetition).
So if your list is newsList and your item is newsItem, then the receiving
page only needs to know about newsItem.
I'll post a more complete example when I get home.
--
_Deirdre http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
-- Wen Spencer on plotting a novel
_______________________________________________
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.