This functionality is only available for certain module packages. Info / Copyright
Defining dynamic user interfaces
Usually the user interface of a configurator in the Project BuilderThe project-specific configuration and the automatic generation of the project documentation takes place in the Project Builder on the basis of the configurators and sets of rules defined in the Designer. consists of the displayed name 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 Project Builder dynamically.
To do this it is necessary to control the visibility of the displayed name. Define conditions so that certain displayed names are only visible if the condition is fulfilled. You create the condition with a formula whose result is 'true' or 'false'. Only if the result is 'true', are the displayed names visible.
Preconditions
- You have created a configurator in DesignerConfigurators and sets of rules are defined on the basis of EPLAN macros in Designer. These form the basis for the configuration and the automatic generation of the project documentation., which contains an element with at least two configuration variables.
- You are in the editing mode of this element.
Procedure
- Expand the view of the second configuration variable, by clicking the button next to the name of the configuration variable.
- The VisibilityYou control the visibility of configuration variables by defining the conditions. Only if the conditions are fulfilled, the displayed names of the configuration variables in Project Builder become visible. entry field is shown.
- There you enter a formula whose result is dependent on the value of the first configuration variable.
- If a result is 'true', the displayed name of the second configuration variable in Project Builder is visible.
- If the result is 'false', the displayed name is not visible.
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 option with the '24 V power supply' was selected beforehand.
Preconditions
- Configuration variableA configuration variable is a global variable that is referenced with a macro variable. During the generation of the project documentation the value of the macro variable is replaced by the value of the configuration variable. 'A' is of the StringA string is any string of characters that can consist of letters and numbers. type and includes the pre-defined values Generate and Do not generate. It controls the generation of the option '24 V power supply'.
- Configuration variable 'B' controls the generation of the 'Lighting' option.
Procedure
- Expand the view of configuration variable 'B'.
- The Visibility entry field is shown.
- Enter the =A=='Generate' formula there.
- This means that the displayed name of the configuration variable 'B' is only visible in the Project Builder, if for the configuration variable 'A' was selected for the Generate value.
Note
If the configuration variable 'A' is of the Boolean type, it is sufficient to make a reference to the variable. Since there can only be one 'true' or 'false' value, the prompt of the value is not necessary. In this example the formula is =A.