After LOV [message #562710] |
Fri, 03 August 2012 11:52 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
bmandrews81
Messages: 4 Registered: January 2008
|
Junior Member |
|
|
I have a master - detail form and an LOV that will provide all of the data inserted into the detail block of the form. I would like for the user to select an item from the LOV which populates all of the fields in the detail row.
The detail block only has a database column for the master block primary key column and a database column for the primary key from the items table that will be associated with items from the master block.
The other columns in the detail block are all display columns so the user can see what they selected.
My detail block is displaying 10 rows so when a user selects one item from the LOV it adds it to the first row but when they add the second item from the LOV it just updates the first row with the new selection.
What I would like to have is once the first row is populated then the cursor moves to the next_record of the detail block and the values of the second selection be inserted and repeat the process for as many details as the user selects.
I have tried placing a next_record command on the WHEN-VALIDAE-ITEM and POST-TEXT-ITEM triggers of the database columns in the details block and also tried WHEN-VALIDATE-RECORD at the block level and that did not work either.
Can someone point me in the right direction?
Thanks
|
|
|
|
|