Interaction Between Windows

Previous Next

See Also

Runtime USoft applications feature multiple concurrent document windows and dialogs. There are many different ways in which you can make these windows communicate. Take time to find out what form of interaction between windows you require.

Calling one window from another

Some basic forms of interaction between windows are easy to realize because application methods are offered for them. To let the user open a window by clicking a button on another window, use this method call on the Click Button event:

WindowCreate({<info box class name> | <dialog class name>})

Data synchronization

USoft Developer automatically implements popular forms of data synchronization between windows. Without a line of coding, you get data synchronization between one window handling parent data (CUSTOMER data), and another handling child data (ORDER data). The same applies to supertype / subtype synchronization. Other forms of data synchronization can be realized using secondary info windows.

Make sure you take advantage of these possibilities. Do not assume straight away that you need to implement all interaction between windows manually by writing method calls.

For more information, go to Data Synchronization .

Passing values between windows

Often all you need to do is to pass a string or number value to a window when you first open it. Define a user-defined property in the window, and pass a value to it when you open the window. From then on, the window can refer to the value locally at any time without needing to know where it came from.

For more information, go to How to Define a Property .

For examples, see Actions Examples 9 and 10.

Other communication between windows

Sometimes windows need to communicate more than once, and after creation time. Unless this communication is default data synchronization, you need to specify it by defining properties of a different type than simple strings, i.e. properties that can hold objects such as windows, and by using these properties in method calls.

For more information, go to Permanent Window Interaction .

For examples, see Actions Example 11 and 12. Actions Example 11: Window with Separate Search Dialog