Direct Actions and Sessions
Direct Actions and Sessions
- Subject: Direct Actions and Sessions
- From: Greg Hulands <email@hidden>
- Date: Thu, 27 Nov 2003 21:43:42 +1000
Hi,
I am trying to create a direct action that will update an Enterprise
Object and save the changes to the database. What essentially happens
is that the user clicks a button to change the title of an image. A
javascript prompt asks for the name and dynamically changes the title
on the page. What then needs to occur is to send back the new title of
the image to the WO app to update the database.
I have struggled to find much documentation on how direct actions work
and how I can use them with sessions, as all it basically says is that
direct actions are for sessionless applications.
The way I will update the WO app would be something like
/MyApp.woa/wa/setTitleForImage?image=uniqueImageNumber&title=newtitle.
Questions:
1. How do I get the session with a direct action as I need to get the
default editing context to update the database.
2. How do I parse passed in parameters to the direct action, eg image
and title in the above example.
Any pointers to documentation on how to use direct actions properly
would be appreciated.
Regards,
Greg
_______________________________________________
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.