How to Pass a Value to Another Window

Previous Next

To pass a text-like (string) value to another window:

1.First define a property in the other window. For the type of this property, specify String (the default). For the Argument Position, specify 1 (the default) if no other user-defined properties exist or are needed. Save your work.
2.Open the window that you want to pass the value to. Find the window class in the catalog .
3.Open the Object Activator for the context from where you want to pass the value. This could be the Action property of a button in the first window.
4.In the catalog, place the cursor on the window you want to pass the value to. Drag-and-drop the window class from the catalog to the Script box in the Object Activator.
The Object Activator now generates a method call of this type for you:

<window name> ( ? ).Window.Create()

where the question mark is a placeholder for the value to be passed to the property you just defined.
5.In the Object Activator, place the cursor on the subnode for the new method call in the Script box. This subnode corresponds to the question mark.
6.Click Edit and type a hard-coded string in the subnode, or compose an embedded method call. For example, if you want to pass the value currently held in a non-database text box, select Variables.Text_Box_1 in the object browser pane, and then click Set. If you want to pass the value currently in the NAME database column, select query.name in the Object Browser pane, and then click Set.
7.Click OK to apply.