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

CancelClose

Use this command to prevent a Data Grid or HTML window from closing when a user clicks the window close button (the x in the top-right of the window’s title bar) in a Longview Data Grid or HTML window of a Longview App. For information on specifying close behavior, see OnClose.

Syntax:

CANCELCLOSE

Syntax example:

Set VARIABLE ExitOption = ShowPrompt("Would you like to save your changes before closing?", "YesNoCancel")

 

If "$ExitOption$" EQ "YES"

//Upload changes to DataArea and Close

Upload DataArea1

End If

 

If "$ExitOption$" EQ "Cancel"

//Cancel the Close action

CancelClose

End If

Published:

CancelClose

Use this command to prevent a Data Grid or HTML window from closing when a user clicks the window close button (the x in the top-right of the window’s title bar) in a Longview Data Grid or HTML window of a Longview App. For information on specifying close behavior, see OnClose.

Syntax:

CANCELCLOSE

Syntax example:

Set VARIABLE ExitOption = ShowPrompt("Would you like to save your changes before closing?", "YesNoCancel")

 

If "$ExitOption$" EQ "YES"

//Upload changes to DataArea and Close

Upload DataArea1

End If

 

If "$ExitOption$" EQ "Cancel"

//Cancel the Close action

CancelClose

End If

For an optimal Community experience, Please view on Desktop