Scenario: Enable a Next button when property SQLLOGIN = 1. SQLLOGIN is set to 1 ior 0 in a custom action that is executed by clicking the Login button on the same dialog.
Implementation:
Next button has 2 entries in the ControlCondition table, these are:
MyDialog | Next | Disable | SQLLOGIN=0
MyDialog | Next | Enable | SQLLOGIN=1
Login button executes a custom action with embedded VBS with the following code:
Session.Property("SQLLOGIN")="1"
msgbox Session.Property("SQLLOGIN")
(Note: I tried 1 without the quotes but get an execution error.)
Results: The next button is disabled when the dialog appears. When the Login button is clicked, a message box appears showing that the value of the SQLLOGIN property has been set to 1, but the next button is not enabled.
Question: Why doesn't this work?! Should I subscribe the next button to some event? If so, which one?
Any help is greatly appeciated.
-Lee