• 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
Direct Actions and Sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Direct Actions and Sessions
      • From: Colin Clark <email@hidden>
    • Re: Direct Actions and Sessions
      • From: Jim Pearson <email@hidden>
  • Prev by Date: Re: Newbie question:progress bar
  • Next by Date: Re: Integer vs. Number vs int
  • Previous by thread: Re: Integer vs. Number vs int
  • Next by thread: Re: Direct Actions and Sessions
  • Index(es):
    • Date
    • Thread