• 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: WOHyperlink Passing a value back...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink Passing a value back...


  • Subject: Re: WOHyperlink Passing a value back...
  • From: Art Isbell <email@hidden>
  • Date: Tue, 8 Jun 2004 14:36:46 -1000

On Jun 8, 2004, at 1:44 PM, James Cicenia wrote:

I have decided to implement my own sortable headers by allowing
the person to click a WOHyperLink on column headers. I was hoping
that it would allow me to pass back a constant which in this case
would be the key to sort on.

No actions include arguments.

Without using directActions is this possible? OR, do I have to write a
action for every column... yuk.

I suppose if you made your table's columns dynamic (i.e., a WORepetition for the columns), you could detect in which column the hyperlink had been clicked and thereby use a single action method to sort.


But that seems like overkill to avoid writing several action methods containing a single statement, "return _sortByPropertyName(propertyName)" with _sortByPropertyName() containing one sorting statement and a "return null" statement.

Aloha,
Art
_______________________________________________
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: 
 >WOHyperlink Passing a value back... (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: WOHyperlink Passing a value back...
  • Next by Date: Re: Fetch Only Non-Empty To-Many
  • Previous by thread: Re: WOHyperlink Passing a value back...
  • Next by thread: Re: WOHyperlink Passing a value back...
  • Index(es):
    • Date
    • Thread