Skip to main content

FieldLogs

Template Variables

A Template can have variables associated with it. Template Variables hold values that can be used within the Template.

Template Variables can be used by Scripts. The values can also be assigned at runtime before the Task is run.

To create a Template Variable:

  1. Open an editable Template to which a Variable needs to be added. Navigate to the Variables tab in the Property Pane.

    CreateVariable1.png
  2. Click New Variable.

    CreateVariable2.png
  3. Enter the values for the fields displayed as seen below:

    New_Variable_182.png

    Field

    Description

    Variable Name

    Note

    Variable Name is required

    Name of the Variable.

    It can only contain alphanumeric characters and underscores (_).

    Variable Description

    Note

    Variable Description is optional

    A description of the Variable and its purpose.

    Variable Data type

    The following Data Types are available.

    Data type

    Description

    Value

    Any text value

    Date

    Date values

    Number

    Any numerical value

    GPS

    GPS value

    URL

    URL value

    Object Variable

    Object value

    Custom Text

    Step text replacement

    FL Asset Status

    Effectivity

    Custom Field

    Custom Field values

    Mandatory

    The variable is optional by default. Selecting the checkbox makes it mandatory.

    Variable Value

    The value assigned to the variable.

  4. Click Save to save the Variable.

    CreateVariable4.png

    The applied filters persist even after refreshing the browser or switching between different tabs.

    Variable_SV.png

Below are some sample Template Variables.

Variable Description

Variable

A variable of type Value

This Variable stores a text value.

CreateVariableValue.png

A variable of type Date

This Variable stores a Date value.

CreateVariableDate.png

A variable of type Number

This Variable stores any number, including decimals.

CreateVariableNumber.png

A variable of type GPS

This Variable stores address information.

CreateVariableGPS.png

A variable of type URL

This Variable stores a URL.

CreateVariableURL.png

A variable of type Object Varable

This Variable holds an Object Variable type.

CreateVariableObject.png

A variable of type Custom Text

This Variable replaces selected text in Steps with the specified text replacement.

CreateVariableTC.png

A variable of type FL Asset Status.

This Variable Asset Status stores information related to Effectivity.

Asset_Status.png

A variable of type Custom Field.

This variable stores Custom Field values.

Custom_Field.png

Note

Custom Field data type enables users to parameterise the Custom Field details using Template variables.