RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Set value according to selection RadioButtonGroup

Hello!

I have a problem to set a value RadioButtonGroup according to selection of particular value.
example:
RadioButtonGroup1 = 1;
If (RadioButtonGroup1 = 1)
RadioButtonGroup2 = 1

As poss set value according to the value of another RadioButtonGroup?

I'm waiting!

Thank you in advance!

Sorry I'm English! This message is translated by google translator.
Attachments
Capturar.PNG
Capturar.PNG (73.43 KiB) Viewed 5520 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Set value according to selection RadioButtonGroup

Hello,

I'm not sure I fully understand you scenario but I assume you want to automatically enable the first option from the second radio button group if the first option of the first radio button group is enabled.

Unfortunately we don't have predefined support for this due to Windows Installer limitations.

However you can go in the “Dialogs” page and use a Set property on button push init event.
Unfortunately the event will take place after the dialog will be changed, not when the action took place.

So, you can select the first radio button(e.g. RadioButton_1) from the first RadioButtonGroup and in the Init Events tab add a new event and from the new appeared window you can select the Set Installer Property value.
You can edit its property like that:
Property: field RADIOBUTTONGROUP_2_PROP where RADIOBUTTONGROUP_2_PROP is the property assigned to the second radiobutton group
Argument: field RadioButton_1
Condition: field RADIOBUTTONGROUP_1_PROP = "RadioButton_1"

Add another init event for the second radio button(e.g. RadioButton_2) from the first RadioButtonGroup.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Set value according to selection RadioButtonGroup

Dan wrote:Hello,

I'm not sure I fully understand you scenario but I assume you want to automatically enable the first option from the second radio button group if the first option of the first radio button group is enabled.

Unfortunately we don't have predefined support for this due to Windows Installer limitations.

However you can go in the “Dialogs” page and use a Set property on button push init event.
Unfortunately the event will take place after the dialog will be changed, not when the action took place.

So, you can select the first radio button(e.g. RadioButton_1) from the first RadioButtonGroup and in the Init Events tab add a new event and from the new appeared window you can select the Set Installer Property value.
You can edit its property like that:
Property: field RADIOBUTTONGROUP_2_PROP where RADIOBUTTONGROUP_2_PROP is the property assigned to the second radiobutton group
Argument: field RadioButton_1
Condition: field RADIOBUTTONGROUP_1_PROP = "RadioButton_1"

Add another init event for the second radio button(e.g. RadioButton_2) from the first RadioButtonGroup.

Please let us know if that helped.

Best regards,
Dan

Hello!

There is exatamento it takes for this moment. I ask you through a CustomAction would not be possible to perform this process?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Set value according to selection RadioButtonGroup

Hello,

As I said in my previos reply this functionality cannot be achieved due to the Windows Installer limitation.

However you can achieve the desired behavior through multiple check boxes controls. On these check boxes you can have multiple Published Events.

I had attached a sample which implement your desired behavior. Also I had added Control Conditions on the [ Next> ] button from the same dialog with the checkboxes controls to make sure that the user will choose an option.

If you have any questions, please let us know.

Best regards,
Dan
Attachments
SampleCheckBox.aip
(16.48 KiB) Downloaded 537 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”