Skip to main content

FieldLogs

Template Variables - Text customization

Sometimes, it might be required to customize a Template by replacing generic terms with specific terms.

Consider the below scenario:

A generic Template Oil Replenishment Procedure details the steps to be carried out to replenish oil across the factory machinery. This Template has a placeholder text QuantityVar for the actual quantity of oil to be used.

TCVariable2.png

Depending on the component or machine that is being serviced, the quantity of oil will differ. A fieldworker assigned to replenish the engine oil will work on the Template Engine Oil Replenishment Procedure. This specific Template for engine oil replacement reuses the generic Template Oil Replenishment Procedure by embedding it as a Component Step.

TCVariable3.png

A Text customization Template Variable is used in the Engine Oil Replenishment Procedure Template to replace the generic placeholder text with text that is context-specific - in this case, the exact quantity of oil required for engine oil replenishment.

Using a Text customization Template Variable, the same Oil Replenishment Procedure can be reused by all the fieldworkers with the correct quantity of oil corresponding to the component being worked on.

To set up a Text customization Template variable:

  1. Create a Template Variable as detailed here.

  2. Select Text customization as the type of the variable. Enter the generic text and the context specific text in the respective fields as shown.

    TCVariable5.png

    At runtime, the generic text will be replaced by the context-specific text.

In the above example, a Text customization variable to replace the text QuantityVar by the text 5 litres is set up in the Template Engine Oil Replenishment Procedure as shown below.

TCVariable1.png

At runtime, the Engine Oil Replenishment Task displays the exact amount 5 litres to the user.

TCVariable6.png