ProApp Designer - Release 14.10 (Package 32)

Text Control

Text control displays properties of datatypes String, Text, Integer, Float, Decimal, Date, Sequence and Classification. Text control honors Format Specifier set on the ItemType definition. Text control honors the default value set through ItemType definition. You can also set default value for Text control by defining text expression with properties from other controls from the current page or previous pages. Text control has additional settings like Display Condition, Validation Rules, Conditional Formatting etc. that are covered in the subsequent sections.

  • Name: It is used to uniquely identify control inside the template. For text control, name is derived from the property bound to the control.
  • Label: It is used for showing title on the text control. For text control, label is derived from the property bound to the control. If property label is localized inside innovator, at runtime localized label is pulled from the property definition.
  • Data Type: It allows type of data that you can entry in the text control. It is derived from the property bound to the control.
  • Tooltip: Tooltip will be shown when you hover the mouse on the information icon on the form field. It is derived from the property bound to the control.
  • Help Text: Help Text flyout will be shown when you click on the information icon on the form field label. It is derived from the property bound to the control.
  • Format Specifier: It shows the format in which data should be rendered in the control. It is derived from the property bound to the control.
  • Unit: Unit setting will be shown only for the numeric properties associated with the control. Using this setting, you should be able to set units for Weight, Length, Area etc. through the Select Symbol dialog.

  • Control Style: Text control can be rendered as textbox, text area, rule by setting its style as single line, multi-line, masked, expression, or rule.

    Control Style: Single Line

    Control Style: Multi Line

  • Control Style: Masked

    Control Style: Expression
    With expression style, editing the control will show expression editor to create expression with properties from the contextual ItemType.

    Control Style: Rule

    With rule style, editing the control will show rule editor to create rule with properties from the contextual ItemType.

  • Access: It allows you to define roles which can access control. Roles (in the form group identities) can be at Show and Edit level. When control is hidden because you do not have defined role, property associated with this control is not even fetched from server.
  • Computed Value: It allows you to show default value when control is rendered. Default value can be computed based on the expression; in the expression you can reference other properties from the current page or previous pages. If you create an expression for default value and make control as read-only, it can dynamically change its value based on what you enter in other controls on the page.
  • Read Only: Based on the option selected for Read Only, control can become read-only even if you can edit the properties used inside the page with lock. You can select one of the options like ‘Yes’, ‘No’, ‘Expression’, or ‘Script’. Expression allows you to define a Boolean expression using properties from the current and previous pages (in case of multi-page application) to conditionally make the control read-only if expression is evaluated to true. Expression will be evaluated based on the cached property values on the client. Script allows you to write custom JavaScript code that should return Boolean value. If returned value is true, the control will be read-only.
  • Display Condition: Based on the option selected for Display Condition, the control will be shown or hidden in the wizard at runtime. You can select one of the options like ‘Always Show’, ‘Always Hide’, ‘Expression’, or ‘Script’. Expression allows you to define a Boolean expression using properties from the current and previous pages (in case of multi-page application) to conditionally display the control if expression is evaluated to true. Expression will be evaluated based on the cached property values on the client. Script allows you to write custom JavaScript code that should return Boolean value. If the returned value is false, the control will be hidden.
  • Validations: By default, a row is displayed under the Validations section. By clicking the cell under Rule, a condition or script can be set to validate the data entered in the control. Normally validations are executed when you click on Save, Done, Next buttons from the wizard. While you are defining the rule, you need to set the message that you want to display to user when rule is not satisfied. Message can also be a text expression; you can use current control or other control values to display dynamic text to the user. You can also set locale specific messages for the languages you configured. While defining the rule, you also need to specify Type of the rule as Error or Warning. Additional rules can be added by clicking on Add (+) action on the previous row after which you need to add the rule. If you define multiple rules, all rules should be satisfied to move forward. You can remove or reposition the rules using the respective icons from actions column.

    The following example shows validation rule of type Error. When validation rule fails, error will be shown in the popup dialog with options to ignore and move forward or fix the issues before moving forward. If you move forward without fixing validation errors for that page, in the navigation panel, page title with be shown with red circle with tick icon to indicate there are validation errors in the page.

    The following example shows validation rule of type Warning. When validation rule fails, warning will be shown in the flash notification with orange background color. Warnings can be ignored by clicking on Save, Done, Next buttons second time to move forward with the warning.

    Validation rule can be defined using Script option. This will be useful for defining validation based on some complex logic rather than simple expression. Script can be written in JavaScript by accessing control values using API. Script can contain the logic to access data from the server to perform complex validation. Script should return a Boolean value to indicate whether the validation is successful.

  • Conditional Formatting: By default, a row is displayed under Conditional Formatting section. By clicking the cell under Rule, a condition or script can be set to display specific styles for the data displayed in the control if the condition is evaluated to true. Additional rules can be added by clicking on Add (+) action on the previous row after which you need to add the rule. Condition formatting rules are evaluated at runtime in the order in which they are defined from first to last, whenever the first rule is satisfied it stops and won’t execute remaining rules. Because of that, extra care should be taken while defining the order of the rules.
    You can edit the existing rule by clicking on action icon . You can remove or reposition the rules using the respective icons from actions column.

    Conditional Formatting rule can be defined using Script option. This will be useful for defining the rule based on some complex logic rather than simple expression. Script can be written in JavaScript by accessing control values using API. Script can contain the logic to access data from the server to execute complex rule. Script should return a boolean value to indicate whether the rule is successful.

  • Reset Dependency: It allows you to reset value of the control to the default if any of the controls defined in “Reset Dependency” have their value changed at runtime.
  • Font: It allows you to set the required font and size for the value in the control. If any of the settings are changed, it shows Reset icon on the border, using which you can reset the settings.
  • Margin: It allows you to set required top, right, bottom, left margins with respect to adjacent controls. If any of the settings are changed, it shows Reset icon on the border, using which you can reset the settings.
  • On Load: OnLoad event allows you to write custom logic that will be executed after the value in the control is loaded. Please refer to the Template Customization section for more details.
  • On Change: OnChange event allows you to write custom logic that will be executed after the value in the control is updated. Please refer to the Template Customization section for more details.