Required component, Avoid deselect,

Got a problem you cannot solve? Try here.
QooScho
Posts: 152
Joined: Fri Apr 15, 2011 1:02 am

Required component, Avoid deselect,

Postby QooScho » Mon May 02, 2011 5:24 am

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

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Required component, Avoid deselect,

Postby giaviv » Mon May 02, 2011 8:05 am

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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Required component, Avoid deselect,

Postby giaviv » Mon May 02, 2011 8:05 am

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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

QooScho
Posts: 152
Joined: Fri Apr 15, 2011 1:02 am

Re: Required component, Avoid deselect,

Postby QooScho » Mon May 02, 2011 8:33 am

Dear Aviv,

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

regards
Hansjoerg

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Required component, Avoid deselect,

Postby giaviv » Mon May 02, 2011 9:06 am

I agree. This actually came up a few weeks ago and we are definitely aware of it.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

anja_laenge
Posts: 118
Joined: Tue Nov 20, 2012 1:02 am

Re: Required component, Avoid deselect,

Postby anja_laenge » Thu Apr 29, 2021 10:22 am

Any updates on this?

kind regards
Anja

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Required component, Avoid deselect,

Postby FrancescoT » Thu Apr 29, 2021 12:04 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

anja_laenge
Posts: 118
Joined: Tue Nov 20, 2012 1:02 am

Re: Required component, Avoid deselect,

Postby anja_laenge » Fri Apr 30, 2021 4:02 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 28 guests