Skip to main content

FieldLogs

Display An Alert

This category of Instruction displays a simple message in a window to the user.

This is accomplished by the following FieldLogs specific Instruction:

Flkw:ShowAlert

Note

Flkw:ShowAlert is not used to display any information to the user.

It is used only as a debugging tool to track the execution of complex Scripts.

Flkw:ShowAlert is a simple instruction that displays a message in a window.

Format : Flkw:ShowAlert('Title','Message');

Parameters

Description

Title

Title of the alert window

Message

Message to display

To construct an enhanced Script Instruction using Flkw:ShowAlert:

  • Select JS Execute from the Instruction dropdown list. In the Expression field, enter the Flkw:ShowAlert Instruction as shown.

    Note that a user input value can be included in the message. Here, the value of the variable A1 is part of the message.

    ShowAlert1.png

    An Flkw:ShowAlert Instruction is added to the Script.

    At runtime, if the user enters 4400 for the Step with ID 2, the following message window is displayed.

    ShowAlert2.png