Versions Compared

Key

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


Panel
titleDescription

Prints the supplied message to the local console (or the gateway logs, as appropriate) - by default, this means the Output Console when in the Designer, and the browser's console when in a live session.

Panel
titleSyntax

system.perspective.print([message], [sessionId], [pageId], [destination])

  • Parameters

String message - The print statement that will be displayed on the console. [optional]

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]

String destination - Where the message should be printed. If specified, must be "client", "gateway", or "all". Default is "client". [optional]

  • Returns

Nothing

  • Scope

Gateway, Perspective Session

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet - View
# Sends print statement to the gateway logs.
system.perspective.print(message="Hello World", destination="gateway")
Panel
titleKeywords

system perspective print, perspective.print