Disable the button at run time [message #604955] |
Mon, 06 January 2014 08:59 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
irfankundi786@yahoo.com
Messages: 269 Registered: February 2009 Location: pakistan
|
Senior Member |
|
|
I have the detail block having multiple text item and button in tabular form.
i want to diable the button at certain condition.not all the button of the block but at every record it is check and if condition is true for that certain
record the button is disbled if not met then the button is enable..how this can achieve???
|
|
|
|
|
Re: Disable the button at run time [message #604964 is a reply to message #604961] |
Mon, 06 January 2014 09:54 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cookiemonster
Messages: 13937 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Set_item_instance_property can be used for any item type.
However, enabled is not a property you can set with it.
You can't programatically disable individual instances of a button in a form.
You could set the visual attribute to make it look disabled using set_item_instance_property, but you would also need to modify the code in when-button-pressed to stop it doing anything when it's not supposed to.
|
|
|