Form Template
Properties | Events | Methods
Form Template is used to define predefined checklists
Properties
Custom
Accordian
Groups within an accordion layout and allows configuration of their state as Expanded, Collapsed, or Not Applicable.
Checklist Design Type
Defines the visual layout style used to render the checklist.
View Type
Specifies the overall layout type in which the checklist is displayed.
Allow HTML Inputs
Enables the use of HTML content as input within the form.
Methods
The following methods will be revised in the Form Template and subsequently mapped to the Template Control.
SetListCtrlProperty
Set the value for the template fields
Default Variant
Return Type
string|number|boolean|date|time|json|array|bit|date and time|
Syntax
SetListCtrlProperty("<<Template Field ID>>","<<Property Name>>","<<Value>>")
Example:
SetListCtrlProperty("2ZiLCMAtDe", "hide", false);
Parameters
Template Field ID string : System-generated field which will generate a sequence of keys each time a new field is added (Eg, 2ZiLCMAtDe).
Property Name string : Mention the respective property name.
Value boolean : Specifies the value assigned to the property which will be changed on property data type.
GetListCtrlProperty
Get form template field values
Default Variant
Return Type
string|number|boolean|date|time|json|array|bit|date and time|
Syntax
let <<Variable Name>> = GetListCtrlProperty("<<Template Field ID>>","<<Property Name>>");
Example:
let lsvalue = GetListCtrlProperty("dy1ji9M2Vj","value");
Parameters
Template Field ID string : System-generated field which will generate a sequence of keys each time a new field is added (Eg, dy1ji9M2Vj).
Property Name string : Mention the respective property name.
AutoFillFromDataSource
The control is automatically filled with a value when the page loads.
Default Variant
Return Type
string|number|boolean|date|time|json|array|bit|date and time|
Syntax
AutoFillFromDataSource(<<Data>>)
Example:
AutoFillFromDataSource({ "type": "App", "dataset": 3070191, "params": [{ "pname": "HNUM", "source": "PV", "value": 46, "defvalue": null }], "code": "DSCODE", "value": "RESULTVAL", "lookup": -1 ,"tag":"wps"})
Parameters
| S.No | Group | Field | Description |
|---|---|---|---|
| 1 | JSON | Data | Need to define data in JSON format |
| 2 | Group | Type | Need to enter the type as Application |
| 3 | Group | Dataset | Need to enter the data source object ID |
| 4 | Group | Parameter | Need to define the parameter in JSON format |
| 5 | Group | Parameter Name | Need to enter the parameter name, which is available in the mapped data source |
| 6 | Group | Source | Need to enter the source based on a parameter |
| 7 | Group | Value | The value needs to be entered based on the source |
| 8 | Group | Default Value | Used to define the default value for the mentioned parameter |
| 9 | Group | Code | Mention the field name for the code field |
| 10 | Group | Value | Mention the field name for the value field |
| 11 | Group | Lookup | If it's a design object, enter the corresponding lookup ID; otherwise, enter -1 |
| 12 | Group | Tag | Enter the Tag name defined in the form template field |
