Aug 24, 2011, 12:13 AM
Best practice for inserting new order/order detail
I often have use cases were I need to enter a new parent record with child records all on one page.
From the mvc.demo, I see how to load the parent/child into a Form and Grid.
Thanks
fdlane
Examples:
- New Order (parent) and OrderDetails (children)
- New Person (parent) and PersonPhones (children)
From the mvc.demo, I see how to load the parent/child into a Form and Grid.
function fillOrder(record) {
OrderCommonInformation.form.loadRecord(record);
ShippingInformationForm.form.loadRecord(record);
dsOrderDetails.loadData(record.data.Order_Details);
}
I would appreciate some advice on the best practice to extend this same example to - start will an empty Form and Grid,
- Create a new Order with new OrderDetails
- save parent/childern to server
Thanks
fdlane