Conditionally limit detail records in master-detail form [message #432689] |
Wed, 25 November 2009 13:44 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
dlwixon
Messages: 92 Registered: September 2008
|
Member |
|
|
I have a master detail form that shows one master record and initially 10 detail records. The user can add more than 10 if they want. There is a relation on the master block that connects the two blocks.
Is there a way to conditionally limit the number of detail records are displayed and allowed if a certain value is entered into a control block field?
|
|
|
|
|
|
Re: Conditionally limit detail records in master-detail form [message #432696 is a reply to message #432695] |
Wed, 25 November 2009 15:38 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
dlwixon
Messages: 92 Registered: September 2008
|
Member |
|
|
Thanks for trying to help me here but MAX_RECORDS_FETCHED only specifies the max records that the block can retrieve after executing a query.
I want to limit the max number of rows available for data entry in the detail block depending on what is entered in the control block field.
So the user would come into the form and enter a value into the control block field. After entering a value for this field, the master block is available for data entry as well as the detail block. However, the number of rows the user can see in the detail and the the number of records the user can enter in the detail block will depend on the value that has been entered into the control block field.
It's this last part that I'm having a problem finding a solution for.
The default number of rows displayed in the detail block is 10. If they enter a certain value in the control block field, I want to limit them to 5 rows. So they would only be able to enter 5 records of data into the detail section.
[Updated on: Wed, 25 November 2009 15:40] Report message to a moderator
|
|
|
|