• 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 pass arguments.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink pass arguments.


  • Subject: Re: WOHyperlink pass arguments.
  • From: Guido Neitzer <email@hidden>
  • Date: Thu, 30 Aug 2007 07:49:19 -0600

On 30.08.2007, at 00:18, Pelsser François wrote:

I call a function with a WOHyperlink and I wanne pass arguments. (like if the action was "myMethod(par1,par2)" )
I think it must be possible with bindings but i don't know how.
Can someone explain it to me?

You can create a WOHyperlink like this:

MyLink : WOHyperlink {
	action = myaction;
	?contactId = contact.contactId;
	?function = "foo";
}

And in the code you can check for the parameters with

NSArray values = this.context().request().formValuesForKey("function");

oder

String value = this.context().request().stringFormValueForKey ("function");

Usw. See the methods in WORequest.

cug _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >WOHyperlink pass arguments. (From: Pelsser François <email@hidden>)

  • Prev by Date: WAR deployment
  • Next by Date: Re: WOHyperlink pass arguments.
  • Previous by thread: WOHyperlink pass arguments.
  • Next by thread: Re: WOHyperlink pass arguments.
  • Index(es):
    • Date
    • Thread