• 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
problem with WOForm, inserting an object into an array used to create the WOForm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with WOForm, inserting an object into an array used to create the WOForm


  • Subject: problem with WOForm, inserting an object into an array used to create the WOForm
  • From: Adam Ramadan <email@hidden>
  • Date: Wed, 03 Mar 2004 14:28:39 -0500

Hi,

I'm creating a single WOForm to edit a number of EOs that are stored in an NSArray. I'm having problems when I add a new EO to the NSArray.

Originally I used a WOPopup to allow the user to select the type of EO to add, and used an action triggered by a WOImageButton to create the EO, add it to the NSArray, insert it into the EOEditingContext and save the changes. This worked perfectly.

Now, instead of using a WOPopup, I'm opening a new browser window. The user selects the EO type and the object is created, added to the array, inserted and the window is closed. I'd like the original window to reflect the change, so I'm calling the WOForm's submit method through JavaScript from the popup window before closing the popup. Unfortunately, having this new EO in the NSArray is causing some problems. WO seems to be trying to update the EO based on the submitted form, but since there aren't any values in the request for the EO, it's attributes are being set to null, as far as I can tell. Looking at the data in the database, the EO was created and initialized properly.

Thanks in advance for any suggestions,
Adam
_______________________________________________
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.


  • Prev by Date: Re: WOText issue...
  • Next by Date: figuring out if to-many is fault: _EOCheapCopyMutableArray
  • Previous by thread: Application URL
  • Next by thread: figuring out if to-many is fault: _EOCheapCopyMutableArray
  • Index(es):
    • Date
    • Thread