When creating Displays, you have access the client namespaces: Client, Displays and Layout.
The methods and properties of the those namespaces can be used directly in the Draw area, when applying Dynamic Properties to the UI elements, in expressions, or in the Display Code Behind.
This section of the User Guide explore those namespaces and its typical usage. For the complete reference on namespaces go to < Objects and Namespaces link >??>
On this page:
The Display namespace lists all the displays with their properties and their open and close methods.
The Layout namespace lists all the layouts with their properties and their open and close methods.
The Client namespace contains the properties of the environment on each connected client computer or mobile device.
See Namespaces for the complete programming reference on runtime objects.
When accessing a project object in the .NET Script Editor, it is necessary to prefix the namespace with an at ‘@’ symbol in order to avoid conflict with the .NET local variables names.
There are many ways to open a new Display or Popup. For each method, specific characteristics must be considered. Below you will find every method for opening a new Display with some description on their behavior and how to use them.
@Display.<DisplayName>.Open(); E.g.: @Display.MainPage.Open(); |
@Display.<DisplayName>.OpenModal();E.g.:@Display.MainPage.OpenModal(); |
@Display.<DisplayName>.NewPopup(LabelList[label1=tag1;label2=tag2],Left,Top, Width,Height); E.g.: @Display.MyPopup.NewPopup("PID=PID1;NAME=’PID 1’"); |
@Display.OpenDisplay("DisplayName");@Display.OpenDisplay("About"); |
@Client.OpenDisplayAtIndex(string DisplayName,int index);E.g.:@Client.OpenDisplayAtIndex("MainPage",0); |
@Client.NewPopup(string DisplayName, LabelList[label1=tag1;label2=tag2],Left, Top,Width,Height);E.g.: @Client.NewPopup("PopupPID","PID=PID1;NAME=’PID 1’"); |
bool sts = @Display.About.Close(); |
string msg = @Display.About.GetCustomPropertiesAsString(","); |
@Display.MainPage.GetCustomPropertyValue("p1","-1") |
@Display.MyPopup.NewPopup("Max=MaxValue;Min=MinValue"); |
bool sts = @Display.About.Open(); |
bool sts = @Display.MainPage.OpenModal(); |
bool sts = @Display.MainPage.PrintDisplay(true); |
bool sts = @Display.MainPage.PrintDisplayDefaultPrinter(0); |
@Display.LogOn.RemoveAllCustomProperties(); |
@Display.MainPage.SetCustomProperties("p1=10;p2=20", ";") |
@Display.MainPage.SetCustomPropertyValue("p1", 50") |
Category: ReadOnly property with categories that are configured for the Display Object in Project Settings → Categories. Used for organization purposes.
Description: Description of the display, configured in Displays → List.
HorizontalScroll: Indicates the horizontal scroll value.
Id Object: Object ID (Internal Use). Can be found at Displays → List.
IsOpened: Indicates if the selected display is opened.
Level: ReadOnly property with levels configured for the Display Object on Unified Namespace → Asset Tree.
VerticalScroll: Indicates the vertical scroll value.
ZoomLevel: Indicates the zoom level of the page. One is the normal zoom level. The images below show the difference between zoom level 1 and 2.
In this section: