Control Condition not working under certain conditions - Advanced Installer Community
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Control Condition not working under certain conditions

I am using the SQL server connection dialog. The next button will be enable only if the SQL connection and user has sysadmin rights passes, afterwards if there is any text changed in the username and password fields the next button will be disabled. This is working as expected except under the following scenario:

When the “test sql connection” button is click it will enable the next button if the test connection passes and if the user has sysadmin rights. This works as expected, set by the 2nd and 3rd conditions, see next button image.

The first condition on the next button will disable it if either the password or username fields have a text changed. Again this works without any issues.
The problem is once the next button is disable by any text change in the username and or password and you retype the same username and password the next button will not be enable by the “test sql connection” button event.

The original username and password will worked if you type a different username and password and then trigger the “test connection button event”, afterwards repeat with the original username and password.

From looking on the log file it seems that the XRESULT_COLUMN_PROP and XsqlConnectionOK are not being set by the “test sql connection” events unless the username and password fields have actually changed from the last time the “test sql connection” button is press. Is this a bug? Any suggestions?

Thank you,

Diego
Attachments
test sql connection button events.png
test sql connection button events.png (17.18 KiB) Viewed 5165 times
Next Button events.png
Next Button events.png (26.17 KiB) Viewed 5165 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Control Condition not working under certain conditions

Hi Diego,

Please keep in mind that the first condition, "(USERNAME_PROP) OR (PASSWORD_PROP)", is true if those properties contains any value (they are not empty), not only if their content is changed. So, the "Next" button is disabled if any value is stored into those properties.

I'm not sure, however, why the "XRESULT_COLUMN_PROP" and "XsqlConnectionOK" properties are not set by the "Test SQL Connection" event. Can you send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Control Condition not working under certain conditions

Eusebiu,
(USERNAME_PROP) OR (PASSWORD_PROP) will disable the next button if any text is changed after the next button becomes enabled. It is working as intended for the purpose I am using them.

I did resolved my original issue with "XRESULT_COLUMN_PROP" and "XsqlConnectionOK" not always being set. I can’t remembered exactly what resolved it since the number of control conditions and events have increase by a substantial number.

Thank you,

Diego
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Control Condition not working under certain conditions

You're welcome Diego. I'm glad you solved the problem.

Just let us know anytime you encounter a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dlenis
Posts: 40
Joined: Wed Nov 02, 2016 2:37 pm

Re: Control Condition not working under certain conditions

Eusebiu,

My apologies, the issue is not resolved. I thought it was. I will build a sample project and send.

Thank you,

Diego
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Control Condition not working under certain conditions

You're welcome Diego.

Just let me know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”