Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.showWarning()

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use showWarning() method to show a warning message to the user.

Syntax

SFU.showWarning(title, message [, callbackHandlerFn]);

Parameters

Parameter

Description

title

Title of the message.

message

Message to display to the user.

callbackHandlerFn(val)

A function that is triggered after the confirmation action is performed.

Here val is a boolean value that represents the confirmation result.

Note: You can include HTML content in the title and message.

Return Value

None.

Example

// Show the warning message to the user.

SFU.showWarning("Clear Form", "Clear Form will clear all the contents in the Form. Do you want to continue?",

function(val)

{

if (val)

{

control.topLevelForm.clearContent();

}

});

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in