How to commit after header and details are created

0
  I have a requirement for the following    1. Capture a order header page with attribute Order Expectation Date.  Press Next for #2  2. Page will show no order details to begin with. User will be enter order details of each product.  3. Do not show confirm prompt until the sum or all order details > $100.     Once confirmed -  Store the order header and order detail and commit.    Can some point on how to implement #2 without storing into DB?
asked
4 answers
0

Hi Kiran, 

 

You can make use of  non-persistable entity to store the value in memory. 

 

 

answered
0

Hi Kiran,

 

you can create object but make sure it is not committed to DB and you can use the attributes on the next step/page by passing a parameter object.

 

answered
0

I was able to create object - order header and pass to next page. 

Got stuck in the following issue- I want to enter multiple order details and show in the list view without committing to database. 

 

- Enter Order Detail  ( order detail 1, 2 ,3..) 

- Add to some list 

- Show in the page with list of order details entered 

 

I do not want to commit header and detail until sum of order details > 100

 

 

answered
0

Hi Kiran , You can have two entities one for header and one for Order details. 

 

First you can create Order hearder object and pass to the page 

 

In that page you can create new order detail object which is asssociated to Order header objects. 

 

With the help of the association between two entities you can use listview to display the order details objects

answered