Home » Developer & Programmer » Forms » set_item_property in multi record block
icon9.gif  set_item_property in multi record block [message #233664] Fri, 27 April 2007 02:26 Go to next message
mk_agg1969
Messages: 19
Registered: August 2006
Location: india
Junior Member
Hi Gurus,

I am using Forms 6i. I want the push button to be enabled or disbaled based on a condition in multi record block. I have tried for the same.I can do for all the records in the block. But my requirement is to set enabled or disabled for a single or some of the records not all the records in the block.

Can any one guide me how to do this. it's very urgent.

Thanks in advance

Manoj Aggarwal
Re: set_item_property in multi record block [message #233892 is a reply to message #233664] Sat, 28 April 2007 00:16 Go to previous messageGo to next message
mk_agg1969
Messages: 19
Registered: August 2006
Location: india
Junior Member
Is there no body who can guide me about this?
Re: set_item_property in multi record block [message #234117 is a reply to message #233664] Mon, 30 April 2007 01:36 Go to previous messageGo to next message
bhupinderbs
Messages: 67
Registered: July 2006
Location: Bangalore
Member
Hi,
In multi record block, it will set the property for all the items displayed. For any code it will be one item only.

Bhupinder
Re: set_item_property in multi record block [message #234134 is a reply to message #234117] Mon, 30 April 2007 02:27 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
SET_ITEM_INSTANCE_PROPERTY will not help you out. Perhaps you can try the following:
- set the visual attribute of the button through SET_ITEM_INSTANCE_PROPERTY to a 'gray' (so it looks disabled). In your WHEN-BUTTON-PRESSED trigger, evaluate the condition that ideally would disable the button. Exit the code when the condition is met. Else execute the normal button logic. I know it is not perfect but it might help.

MHE
Previous Topic: Key-commit
Next Topic: Open form application in run
Goto Forum:
  


Current Time: Thu Feb 13 01:11:09 CST 2025