Page 1 of 1

Required component, Avoid deselect,

Posted: Mon May 02, 2011 5:24 am
by QooScho
Hello,
In my project there are components like this:

Define Component: My Server
Define Component: My Server\Driver
Define Component: My Server\MySQL Database
Define Component: My Server\Web

I want that If "my Server" is selected the chield "My Server\MySQL Database" is always selected and cannot be deselected by the user.
I tried this:

Get Component My Server Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Select Component: My Server\MySQL Database

The problem is that the MySQL is selected but the user can deselect the item if he want.
Is it possible that in the component tree or treeview we can make a dependency to the "next" button, so that the Next button is disabled if the MySQL is not selected?

regards
Hansjoerg

Re: Required component, Avoid deselect,

Posted: Mon May 02, 2011 8:05 am
by giaviv
Dear Hansjoerg,

You cannot create that constraint (I have tried before).
What you can do is check the validity of the selection AFTER the user has pressed Next, and then if the selection is invalid display a message box and go back to displaying the previous dialog.

Re: Required component, Avoid deselect,

Posted: Mon May 02, 2011 8:05 am
by giaviv
Dear Hansjoerg,

You cannot create that constraint (I have tried before).
What you can do is check the validity of the selection AFTER the user has pressed Next, and then if the selection is invalid display a message box and go back to displaying the previous dialog.

Re: Required component, Avoid deselect,

Posted: Mon May 02, 2011 8:33 am
by QooScho
Dear Aviv,

thank for the info.
Would be nice feature for the next version.

regards
Hansjoerg

Re: Required component, Avoid deselect,

Posted: Mon May 02, 2011 9:06 am
by giaviv
I agree. This actually came up a few weeks ago and we are definitely aware of it.

Re: Required component, Avoid deselect,

Posted: Thu Apr 29, 2021 10:22 am
by anja_laenge
Any updates on this?

kind regards
Anja

Re: Required component, Avoid deselect,

Posted: Thu Apr 29, 2021 12:04 pm
by FrancescoT
Set Component Choice

This command determines whether it is possible for the end-user to select or deselect a component previously defined by the Define Component command.
https://www.installaware.com/mh52/desktop/setcomponentchoice.htm?rhsearch=Set%20Component%20Choice&rhsyns=%20

Re: Required component, Avoid deselect,

Posted: Fri Apr 30, 2021 4:02 am
by anja_laenge
FrancescoT wrote:Set Component Choice

This command determines whether it is possible for the end-user to select or deselect a component previously defined by the Define Component command.
https://www.installaware.com/mh52/desktop/setcomponentchoice.htm?rhsearch=Set%20Component%20Choice&rhsyns=%20


Thank you! I missed that.

kind regards
Anja