Contents
Strategic Partner Links
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
SDK Examples
To pass parameters from one window to a Popup Window, the receiving Popup Window must have Custom properties that receive the passed parameters. When the event on the parent window is called, the parameters are passed to the receiving Popup Window's custom properties on its Root Container. The component's properties on the receiving window can use the Root Container's Custom properties to address their bindings.
This example shows how to setup a main window and a popup window to pass compressor numbers to the Popup Window in order to display relevant information about each compressor.
The Main Window uses buttons to switch between compressors.
Now, create a custom property on your Popup window that will receive the passed parameters.
Right click on your window and select Customizers > Custom Properties. The Custom Properties window will be displayed.
Specify a Name for the Custom Property, for example, name it compNum
, and click OK.
The Custom property is created and displayed in blue at the bottom of the Property Editor.
Do not bind these Custom properties to anything, leave them unbound so you can pass values into them without any other values to override them.
Let's use an expression on the Label to change the compressor number.
Select the Label and click the binding icon for the Text property.
Select Expression for the binding type.
Click the Link icon in the Expression window and choose the 'compNum' custom property on the root container for the compressor popup window as shown in the screenshot below. You can also copy and paste the expression from the Code Block as shown below.
"Compressor " + {Root Container.compNum}