Define dynamic user interfaces for the Project Builder
This functionality is only available to you in the EPLAN Platform.
In the Designer you define the layout of the user interface in the Project Builder. Usually the user interface of a configurator in the Project Builder consists of the displayed name and possible input or selection fields of all configuration variables, which you have defined for the elements of the configurator.
However, you can also design the user interface of a configurator in the Project Builder dynamically by defining the visibility of the configuration variables. If you do this, displayed names and input or selection fields are only displayed under certain conditions.
Prerequisites
- You have called up the Designer.
- You have created a Macro-Typical or a Typical-Group that contains at least two configuration variables.
Define visibility of a configuration variable
- Select a Typical in the selection area.
- Open the Configuration variables drop-down list in the working section.
- Select the second configuration variable.
- Open the Properties drop-down list.
- There you enter a formula under Visibility whose result is dependent on the value of the first configuration variable.
- If the result is "true", the displayed name of the second configuration variable is visible in the Project Builder.
- If the result is "false", the displayed name is not visible.
As soon as you have defined the rules for the visibility, the icon is displayed next to the corresponding configuration variable.
Example
In a configurator for an enclosure there is an option to equip the enclosure with light. The light may only be selected if the enclosure has a 24 V power supply. The "lightning" option should therefore only be visible if the "24 V power supply" option was selected beforehand.
Prerequisites
- The configuration variable
OP_24V has theString type and includes the selection values Generate and Do not generate. It controls the generation of the "24 V power supply" option. - The configuration variable
OP_Light controls the generation of the "Lighting" option.
Procedure
- Expand the view of the configuration variable
OP_Light . - The Visibility entry field is shown.
- Enter the
=OP_24V== 'Generate' formula there. - This means that the displayed name of the configuration variable
OP_Light is only visible in the Project Builder if the value Generate was selected for the configuration variableOP_24V .
Note
If the configuration variable