Problems with Visual Attribute in multirecord block [message #572651] |
Fri, 14 December 2012 10:23 |
10guser
Messages: 16 Registered: September 2007
|
Junior Member |
|
|
Hi,
I'm facing few issues while enabling and disabling button in multi-record block.
When the user checks the checkbox, I'm enabling the button and disabling when unchecked. I've got two VA created to enable and disable. Enabling works fine but disabling doesn't disable i.e. the button doesn't get greyed out.
Is there anything obvious I'm missing out ?
Any pointers would be highly appreciated.
Thanks in advance.
Regards
10GUser
|
|
|
|
Re: Problems with Visual Attribute in multirecord block [message #572656 is a reply to message #572651] |
Fri, 14 December 2012 12:45 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
How do you do that (I mean, enable and disable buttons)?
Unless I'm wrong, in a multi-record block SET_ITEM_PROPERTY doesn't do what you need; you have to use SET_ITEM_INSTANCE_PROPERTY instead. However, "ENABLED" property is not among properties you can change with this built-in.
Therefore, how about NOT using buttons at all. Why do you need them, anyway? If you check the checkbox, it is supposed to enable a button, so - I presume - you press that button. So, why don't you, instead, put WHEN-BUTTON-PRESSED trigger code into the WHEN-CHECKBOX-CHANGED trigger?
|
|
|