Clearing the Reference To a Closed Window

Previous Next

If you have set up a permanent window interaction between two windows, where both windows can affect each other, it can occur that the user closes one of these windows. In this case, the other window still contains a reference to the closed window in its user-defined property.

You have to clear this reference manually to avoid subsequent actions leading to unexpected results or error messages.

Suppose the calling Bookings window opens the Days window. Both windows have a user-defined property that can be filled with a reference to the other window. That is:

The calling Bookings window contains a UDPDays user-defined property.

The created Days window contains a UDPBookings user-defined property.

To clear the reference to a window that is closed manually:

1.For the Bookings window, set the Post-close property to:

UDPDays.UDPBookings( '' )

 

This clears the reference in the Days window to the (closed) Bookings window.
2.For the Days window, set the Post-close property to:

UDPBookings.UDPDays( '' )

 

This clears the reference in the Bookings window to the (closed) Days window.
3.For all methods defined in the Bookings window that perform an action in the Days window (that can be closed), define a decision with Decision SQL statement:

:"UDPDays()" is NOT NULL

 

and set the Yes action to the desired action statement, and do not define a No action.
4.For all methods defined in the Days window that perform an action in the Bookings window (that can be closed), define a decision with Decision SQL statement:

:"UDPBookings()" is NOT NULL

 

and set the Yes action to the desired action statement, and do not define a No action.

 

See Also

Permanent Window Interaction