• 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
Submitting multiple instances in one WOForm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Submitting multiple instances in one WOForm


  • Subject: Submitting multiple instances in one WOForm
  • From: David Avendasora <email@hidden>
  • Date: Tue, 10 Apr 2007 05:31:01 -0500

Hi all,

I have a component in my app that had a WOForm nested inside a WORepetition to submit OrderItems to a manufacturing schedule. One form for each OrderItem, each with it's own submit button. I thought I could make the page much more efficient (from both the user's and the application's perspective) by having just one form that the user selects which items they want scheduled. The way they indicate what OrderItems they want scheduled is by changing an item's quantityToSchedule from null to some quantity.

The only form field in the form is the repeated quantityToSchedule. The quantityToSchedule value is NOT an attribute of OrderItem, and I'm not actually updating OrderItem, I am using the information from the submitted form to create new instances of the ScheduledOrderItem entity.

When I submit the form, I get a null pointer exception when I try to pass the instance of OrderItem that is bound to the WORepitition's "item" binding (aOrderItem). Am I doing something obviously wrong?

Thanks,

Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Submitting multiple instances in one WOForm
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: Re: Retrieving and displaying images
  • Next by Date: Re: Submitting multiple instances in one WOForm
  • Previous by thread: Re: Retrieving and displaying images
  • Next by thread: Re: Submitting multiple instances in one WOForm
  • Index(es):
    • Date
    • Thread