@muriel.schmidt
To make a button conditional in Oracle Forms, you can use the SHOW
Built-in function in the WHEN-BUTTON-PRESSED trigger.
Below is an example of how you can configure a button to be conditional based on a certain condition:
1 2 3 4 5 6 7 |
IF <condition> THEN SET_ITEM_PROPERTY('button_name', DISPLAYED, PROPERTY_TRUE); SET_ITEM_PROPERTY('button_name', ENABLED, PROPERTY_TRUE); ELSE SET_ITEM_PROPERTY('button_name', DISPLAYED, PROPERTY_FALSE); SET_ITEM_PROPERTY('button_name', ENABLED, PROPERTY_FALSE); END IF; |
Replace <condition>
with the condition that you want to check for. If the condition is true, the button will be displayed and enabled. If the condition is false, the button will be hidden and disabled.
This is a simple way to make a button conditional in Oracle Forms. You can modify the code as needed based on your specific requirements.