-
Feb 20th, 2013, 08:12 AM
#1
Adding multiple child records from a parent object (One-To-Many)
I'm currently working on a roo prototype which isn't far from the pizzashop example.
I have a simple example of a one-to-many relationship (orders and order items).
It seems that the auto-generated user interface (web-mvc) expects you to perform your one-to-many relationship association from the child record (associate the one from the many). What I would like to do is add multiple child order items from the order record after the order record has been created. That way I could easily see all order items associated with this order.
Two Questions....
1. Is there an example I'm not seeing where roo would create this type of UI for a one-to-many relationship where I can add multiple children from the parent record?
2. What's the simplest approach for doing this? I'm thinking of a few options....
a. Modifying the JSP code to show the child records.
b. Creating some kind of master-detail view to allow the user to add multiple child records from the parent.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules