Re: WOHyperlink pass arguments.
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