Oracle Forms - Enable Disable Textbox Based On Radio Button Selection [message #659397] |
Sat, 14 January 2017 19:49 |
|
Saket_7
Messages: 4 Registered: January 2017
|
Junior Member |
|
|
We have 3 Radio Buttons in a Radio Button Group and Text item beside the Second Radio Button.
The Text Item should be only enabled when the Second Radio Button beside it is selected and disabled when anyone of the other Radio Buttons is selected.
The text item can only have 'Yes' or 'No' values, if the user enters any other text value, a message should be displayed to the user saying cannot enter any other values. The Default value is 'Yes'. The Table Column for this Text item has some NULLs and the remaining 'Yes'.
Based on the value entered in the Textbox, the table column should have the value 'Yes' or 'No' inserted or updated accordingly.
I'm currently using When_Radio_Changed, When_Validate and Post_Query Triggers, please let me know if any other triggers need to used to achieve this functionality.
|
|
|
|
|
|
|
|
Re: Oracle Forms - Enable Disable Textbox Based On Radio Button Selection [message #659405 is a reply to message #659404] |
Sun, 15 January 2017 10:56 |
|
Saket_7
Messages: 4 Registered: January 2017
|
Junior Member |
|
|
Got you, thank you. The data is being populated in the Data Block from a Table, which Insertable, Updateable and Deletable options set.
I'm thinking I will need to set the ENABLED/DISABLED property of the text item each time when navigating from one record to another one by using a WHEN-NEW-RECORD-INSTANCE trigger because I believe the text item ENABLED/DISABLED can only be done at item level, but NOT at item instance level.
Also to not include a POST-QUERY Trigger as this is a Database item.
|
|
|