Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

ShowPrompt

Use this Longview Application Framework function in a procedure document to display a prompt that users can interact with. This function is specific to Longview Apps. This function is not used in model documents. The window title of messages and prompts is specified in your .lvapp file with the <description> parameter. The look and feel of messages and prompts is specified in your .lvapp file with the <theme> parameter.

For more information, see Configuring Longview Apps.

Note: You must use the ShowPrompt function with Set Variable to set the value to the variable to which the function will be returning data. See the syntax example below. You cannot use the ShowPrompt function in batch mode.

Syntax

SHOWPROMPT ("Message", Button)

where:

  • Message is the message to display.
  • Button can be one of the following values:
    ValueDescription

    OKCancel

    Displays OK and Cancel buttons below the message.

    YesNo

    Displays Yes and No buttons below the message.

    YesNoCancel

    Displays Yes, No, and Cancel buttons below the message.

Syntax example

CREATE VARIABLE msgboxResult AS String

SET VARIABLE msgboxResult = SHOWPROMPT("message box test",YesNoCancel)

Published:

ShowPrompt

Use this Longview Application Framework function in a procedure document to display a prompt that users can interact with. This function is specific to Longview Apps. This function is not used in model documents. The window title of messages and prompts is specified in your .lvapp file with the <description> parameter. The look and feel of messages and prompts is specified in your .lvapp file with the <theme> parameter.

For more information, see Configuring Longview Apps.

Note: You must use the ShowPrompt function with Set Variable to set the value to the variable to which the function will be returning data. See the syntax example below. You cannot use the ShowPrompt function in batch mode.

Syntax

SHOWPROMPT ("Message", Button)

where:

  • Message is the message to display.
  • Button can be one of the following values:
    ValueDescription

    OKCancel

    Displays OK and Cancel buttons below the message.

    YesNo

    Displays Yes and No buttons below the message.

    YesNoCancel

    Displays Yes, No, and Cancel buttons below the message.

Syntax example

CREATE VARIABLE msgboxResult AS String

SET VARIABLE msgboxResult = SHOWPROMPT("message box test",YesNoCancel)

For an optimal Community experience, Please view on Desktop