Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Direct Actions and Sessions



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.