I have a custom dialog that i'd like to be able to enable some of the edit boxes if a particular feature is selected for install
I cant see any examples of this on the help, but i would have imagined i can set the Enabled property of the Edit control on the Init event of the form?
When i try and add a SetProperty Event
Name: [EditSvsvr.Enabled]
Arguement: True
Condition: &SVWeb=3
but it doesnt work for me, is this the correct method?
In order to achieve what you want you should proceed as follows:
- Select the edit box control.
- Go to "Control Conditions" tab and using [New...] button create a new control condition.
- From "Control Condition" dialog in the "Action" field select "Enable".
- In the "Condition" field use [...] button in order to add a control condition. The "Edit Condition" dialog will appear.
- From "Predefined Conditions" group select "Test if the feature will be installed local. The feature is not reinstalled." condition and click [Insert] button or double click it in the list to add it. From "Select a feature" dialog select the desired feature and click [OK] button.
- In the "Condition" field will be set the following condition: ((&MyFeature = 3) AND NOT (!MyFeature = 3))
- Now create a new control condition for "Disable" action and set it as follows: Condition: NOT ((&MyFeature = 3) AND NOT (!MyFeature = 3)) Action: Disable
- Build and run your project.
FOLLOW US
Get the latest news in Application Packaging