• 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: [Newbie] WOHyperlinks with Id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] WOHyperlinks with Id


  • Subject: Re: [Newbie] WOHyperlinks with Id
  • From: Marek Wawrzyczny <email@hidden>
  • Date: Tue, 27 Apr 2004 11:03:26 +1000

The way I'd do it is:

a) In the WOHyperlink, add a new binding called newsId. (Right-click on the bindings view)
b) Bind newsId to something specific to the news item in the WORepetition so you can identify it, ie in worst case scenario, use the news item's PK.
c) Use WORequest's (available through WOComoponent's context().request()) formValueForKey(String key) or stringFormValueForKey(String key) methods to access the value for newsId.



On 27/04/2004, at 10:32, Lucas Haley wrote:

Hello again --

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.

Thanks for any help with this!

-Lucas Haley
_______________________________________________
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.




Marek Wawrzyczny

software engineer
-------------------------->
ish group pty ltd
7 Darghan St Glebe 2037 Australia
phone +61 2 9660 1400   fax +61 2 9660 7400
http www.ish.com.au | email email@hidden
_______________________________________________
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: [Newbie] WOHyperlinks with Id
      • From: "Goh Keng Boon" <email@hidden>
    • Re: [Newbie] WOHyperlinks with Id
      • From: "Goh Keng Boon" <email@hidden>
References: 
 >[Newbie] WOHyperlinks with Id (From: Lucas Haley <email@hidden>)

  • Prev by Date: Re: [Newbie] WOHyperlinks with Id
  • Next by Date: Re: database slowness weirdness
  • Previous by thread: Re: [Newbie] WOHyperlinks with Id
  • Next by thread: Re: [Newbie] WOHyperlinks with Id
  • Index(es):
    • Date
    • Thread