Submitting multiple instances in one WOForm
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