• 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: passing WOTextField values to DirectAction?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing WOTextField values to DirectAction?


  • Subject: Re: passing WOTextField values to DirectAction?
  • From: Michael Warner <email@hidden>
  • Date: Tue, 11 Nov 2003 12:31:24 -0800

In your direct action class, in your method, do something like this:

         if(request().stringFormValueForKey("yourVar") != null)
            String yourVar =
(String)request().stringFormValueForKey("yourVar");
         else
             yourVar = "";

Be sure, on your page, to include a form.  Use the form to send the
direct action.
bind actionClass and directActionName (the drop downs should let you
hook things up correctly
if you have already written your method in the your direct action
class.)
yourVar should be static and the name field should be filled it.
Your submit button should also be static.

Mike W.

On Tuesday, November 11, 2003, at 11:03 AM, james o wrote:

> where do i make the direct action bindings to send a value from a
> WOTextField?
>
> i have a form with a WOTextField inside of it.  i have a String
> "searchValue" bound to the text field.   i can't seem to get the
> string value sent to the Direct Action
>
> i've bound "?searchString = searchValue;" to the Submit button, and to
> the WOForm, etc... trying different combinations and none seem to > work.
>
> thanks for any help,
> ./james
>
> { primax STUDIO : http://primaxSTUDIO.com : 513.772.1223  }
> _______________________________________________
> 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.
_______________________________________________
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: 
 >passing WOTextField values to DirectAction? (From: james o <email@hidden>)

  • Prev by Date: Re: passing WOTextField values to DirectAction?
  • Next by Date: Re: Help me get up to speed with PBX
  • Previous by thread: Re: passing WOTextField values to DirectAction?
  • Next by thread: Filtering an array of EO objects (next hurdle)
  • Index(es):
    • Date
    • Thread