Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Closes a popup view.

Panel
titleSyntax

system.perspective.closePopup(id, [sessionId], [pageId])

  • Parameters

String id - The unique identifier for the the popup, given to the popup when first opened. If given an empty string, then the most recently focused popup will be closed. 

String sessionId - Identifier of the Session to target. If omitted, the current Session will be used automatically. When targeting a different session, then the pageId parameter must be included in the call. [optional] 

String pageId - Identifier of the page to target. If omitted, the current Page will be used automatically. [optional] 

  • Returns

Nothing

  • Scope

Gateway, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# Closes the popup with the given id.
system.perspective.closePopup('popup 4')
Panel
Code Block
languagepy
titleCode Snippet
# Closes the last focused popup
system.perspective.closePopup('')
Panel
titleKeywords

system perspective closePopup, perspective.closePopup