ProApp Designer - Release 14.10 (Package 22)

Document Control

Document control is used to allow you to select the document which is stored in Innovator. Upon clicking on tick icon of the control, Select Document dialog will be shown. After entering search criteria, Select Document dialog shows all the files of type Word, PDF and Image. Selected document is stored on the context item as file property. Document control is useful in case you want to generate Word/PDF document from the context item.

  • Name: It is used to uniquely identify control inside the template.
  • Label: It is used to show label on the control. It can be localized by defined Languages and Locales inside innovator.
  • Data Type: It shows the type of the property as defined in the ItemType definition. In case of Document control, it will always be Item, and it is shown as disabled.
  • 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.
  • Data Source: It shows source type of the property as defined in the ItemType definition. In case of Document control, it will always be File, and it is shown as disabled.
  • Document Filter: It allows you to select the document types that you want to see in the search results. Allowed document types are Image, PDF, Word, Presentation.
  • 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.
  • 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: Validation rules work on Document control similar to Text control. Please refer to Validations section of the Text control for complete details.
  • Reset Dependency: It allows you 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 selected document of Document control.
  • Margin: It allows you to set required top, right, bottom, left margins with respect to adjacent controls.
  • 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.