Hello,

I'm trying to hide a control on a dialog based on the action state of a feature.

The ControlCondition reference...
https://msdn.microsoft.com/en-us/library/aa368035(v=vs.85).aspx

...links to the Conditional Syntax Page:
https://msdn.microsoft.com/en-us/library/aa368012(v=vs.85).aspx

So I would assume this should work just fine. However when I add the following into a ControlCondition Condiiton it does not appear to work:

&Server = 2

Where 'Server' is the feature and '2' is the action state for absent. 

Using this condiiton within the ControlEvent table appears to work just fine, however.

I also checked by just adding a PROPERTY = Value set from the property table and it appears to hide the control just fine then.

Here is a Copy/Paste of the relevant row for reference:
(SQL_Dialog ctrl_SQLTCPPORT Hide &SQL = 2)
1 Comment   [ + ] Show Comment

Comments

  • Odd, I seemingly can use &SQL=3 (3 being action state for present) and that works fine. I honestly don't understand why action state 2 does not work but if 3 works I'll just have to reverse the logic.
Please log in to comment

Answers

0
What happens if you test for the content of the public property "behind" the control? That is to say, set the property to 0 in the property table and then test for 'Not PROPERTY_CONTENT=0'?
Answered 05/10/2015 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity