Home » Developer & Programmer » Forms » Disable the button at run time
Disable the button at run time [message #604955] Mon, 06 January 2014 08:59 Go to next message
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 #604960 is a reply to message #604955] Mon, 06 January 2014 09:32 Go to previous messageGo to next message
sreekumar.nair.it
Messages: 16
Registered: January 2014
Junior Member
Hi,
Try exploring SET_ITEM_INSTANCE_PROPERTY. It may solve your purpose.

Regards,
Sreee
Re: Disable the button at run time [message #604961 is a reply to message #604960] Mon, 06 January 2014 09:37 Go to previous messageGo to next message
irfankundi786@yahoo.com
Messages: 269
Registered: February 2009
Location: pakistan
Senior Member
thanks sree
but i think set_item_instance_property is not used for the button it is used for the text item ....plz how i can diable the button.
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
cookiemonster
Messages: 13920
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.
Previous Topic: Did I understand right from Wikipedia?
Next Topic: tree not execute the query
Goto Forum:
  


Current Time: Thu Apr 25 14:55:03 CDT 2024