Vai al contenuto

Conditions

Every component of the page can take on a different appearance depending on the occurrence of user conditions.These conditions are typically comparisons of two variables or of a variable and a constant.An unlimited number of different conditions can be defined on each page and/or widget, assigning each condition a different appearance of components on the page. Conditions-image_0For add a new condition use Conditions-image_0For remove a condition use Conditions-image_0For syntax change select the condition and use Conditions-image_0Each page normally has a default condition, which is the first active condition when the page is called (both at design time and at runtime). If there are additional condition more than the default one, these are tested iwith order: The first valid one is executed. To change the order select them one by one and act on ‘up’ or ‘down’ . Conditions-image_0In the example over the variable @NO_NAME_0 has value bigger or equal to 1 it is execute the second condition (“@NO_NAME_0>=1”) except if the variabil value is 2, inn this case it is execute the first one. (“@NO_NAME_0=2”). If the 2 conditions were inverted the second will never be executed .In the window that appears, add the mathematical expression of control with the syntax available for scripts.Examples:
  • data = 5
  • data < 5
  • data = data2
  • data1 >= data2+(data3*5)
Once a condition is added, you can change any properties of the components on the page (only of the components, not of the page), setting new values of the new properties for the selected condition. To enabled the editing condition press on . Conditions-image_0Note: some properties are not modifiable by conditions (e.g.: the widget name). In this case, activating the condition at design time, the property will be identified by the character “*”.To return to starting condition of the page, select the default condition.In order to have a preview of the state of the page and its components parallel of the activation of a particular condition there is a combobox on the top edge. Conditions-image_0This component displays all the condition on the page (even of different widgets) and allows the selection of one. Once you select a condition, the page shows the graphic look actived and going to act on all the widgets that the condition was linked to.