Required component, Avoid deselect,

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

Required component, Avoid deselect,

Post 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
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Required component, Avoid deselect,

Post 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.
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,

Post 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.
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,

Post by QooScho »

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,

Post by giaviv »

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: 131
Joined: Tue Nov 20, 2012 1:02 am

Re: Required component, Avoid deselect,

Post by anja_laenge »

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,

Post 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/deskt ... 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: 131
Joined: Tue Nov 20, 2012 1:02 am

Re: Required component, Avoid deselect,

Post 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/deskt ... rhsyns=%20
Thank you! I missed that.

kind regards
Anja
Post Reply