Form Templates are useful for creating multiple forms as one task instead of creating them individually for each Project.
Using consistent layouts for forms that can be repeated across the UI ensures an organized and professional image that customers recognize and find user-friendly.
Forms are declared in the XML where you will need to specify the name of the Form, schema and all its Properties.
Form Templates need to contain all relevant reference images and any other additional files to display a description in the 'Pick Form Template' wizard.
You should also declare which Controls you need included in your Form.
The first part of a Form Template lists the information within the Template, specifically the:
Then, each aspect of the Template should be specified:
Aspect | Consideration |
---|---|
Controls | When declaring a Control, you need to specify its type, name and each Property within it. You must do this for every Control you add. When creating a Control, you must specify whether the Property is Static or Dynamic, as a result of this you will need to use tags to declare what is populating the Property. |
Constants | Constants are simple to declare requiring minimal information, only the name and value is needed. |
Variables and Variable Categories | Variables and Variable Categories can be created with XML Templates.
You can create all your Variables at top level or create Variable Categories. |
Simple Tables | Simple Tables can be created using standard XML Table structures surrounded by Simple Table tags that also state the Table name. |
Calculation Tables | Both Column and Cell rules need to be declared. Additionally you should state the name and number of rows in the Calculation Table tag. We recommend adding an equal amount of Static Values. |
Specification Macros | Specification Macros, are essential to any DriveWorks implementation. You need to declare the Name of your Specification Macro and any Specification Macro Tasks that you want to include in your sequence.
To find the type we recommend utilizing the DriveWorks SDK Documentation. Currently, it isn't possible to create Conditions in a Specification Macro from a Template. When you create a Task, the navigation nodes automatically connect in the order that they've been created. You can add extra connections but cannot remove automatic connections. |
Follow the steps below for creating a Form Template:
If a template is not displaying in DriveWorks after being installed, check that the installer or version of DriveWorks is the one currently being used, as templates are version specific.
A template file will not display if there are errors within its data.
users selected.
To uninstall a Form Template please follow the steps below:
Local Disk>ProgramData>DriverWorks>[Version Number]>Templates>Forms
The deleted Form Template will be removed