• 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]request in a direct action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie]request in a direct action


  • Subject: Re: [newbie]request in a direct action
  • From: Michael Warner <email@hidden>
  • Date: Sat, 15 Nov 2003 12:53:37 -0800

I now have a static hidden field in my form and in the 'name' field
I have included the name of the String value that I want to pass to the
direct action, e.g.  if the String var is named email, I type in email
without quotes.

This doesn't work,

 Is there an additional binding that I need to set up somewhere?

Thanks,

Mike


[if I unhide the field and type in the string value that does work.]


On Saturday, November 15, 2003, at 11:43 AM, Kaj Hejer wrote:

At 11:36 -0800 15-11-03, Michael Warner wrote:
I know how to set up a static field on a form and have that field
read by a direct action using
String var1 = request().stringFormValueForKey("var1");

Now, if I have a var that already exists on the request page and will
not be filled in by the user,  how do I set things up so that the
direct action can read in the value of that var?

simply adding a binding to the form didn't work.


Hi!

One solution is to add a hidden field to the form and bind this var to this field.


-Kaj :)
_______________________________________________
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]request in a direct action
      • From: Kaj Hejer <email@hidden>
References: 
 >Re: [newbie]request in a direct action (From: Kaj Hejer <email@hidden>)

  • Prev by Date: Re: "Cannot obtain globalId for an object which..."
  • Next by Date: Re: [newbie]request in a direct action
  • Previous by thread: Re: [newbie]request in a direct action
  • Next by thread: Re: [newbie]request in a direct action
  • Index(es):
    • Date
    • Thread