Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

Returns an integer that represents a bit field containing information about the currently running system. Each bit corresponds to a specific flag as defined in the bitmask below. The integer return will be a total of all of the bits that are currently active. See the example for tips on how to extract the information in this bit field. Note that the tag[System]Client/System/SystemFlags contains the same value.

FlagFlag DescriptionBit Value
Designer FlagSet if running in the Designer.1
Preview FlagSet if running in the Designer, and the Designer is in preview mode.2
Client FlagSet if running as a Client.4
Webstart FlagSet if running as a Client in Web Start mode.8
Applet FlagSet if running as a Client in Applet mode.16
Fullscreen FlagSet if running as a Client in full screen mode.32
SSL FlagSet if communication to the Gateway is encrypted with SSL.64
Mobile FlagSet if currently running a mobile-launched client.128
Client permissions restrictions


Panel
titleSyntax

system.util.getSystemFlags()

  • Parameters

noneNothing

  • Returns

int Integer - A total of all the bits that are currently active. A full-screen client Client launched from the gateway Gateway webpage with no SSL will have a value of 44 (Fullscreen flag + Webstart Flag + Client Flag).

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
# The first part of the script willtakes take the integer representing the system flags, convertconverts it to bits, andplaces place it in a list, and then printprints it out. 
# The second part of the script willtakes take the list of bits, and placeplaces it in a table showing what each of the bits represent.
 
myList = []
flags = system.util.getSystemFlags()
for i in range(7,-1,-1):
	myList.insert(0, flags >> i & 1)
print myList

headers = ["Designer Flag", "Preview Flag", "Client Flag", "Webstart Flag", "Applet Flag", "Fullscreen Flag", "SSL Flag", "Mobile Flag"]
data = system.dataset.toDataSet(headers, [myList])
table = event.source.parent.getComponent("Table")
table.data = data
Panel
titleKeywords

system util getSystemFlags, util.getSystemFlags