DataWindow.OK Method (Typed) | |
Accept all information entered in this data window and close the window.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax Remarks
This method checks the validation status of the window. If the data is valid and is correctly downloaded to the data server, it forces a commitment to the server and then closes the window.
The "OK" operation is very clear and easily understood and might be profitably used on data windows used as MDI children (unconventional or not).
Note that a user might be confused about exactly what information is accepted (for example, in a complex data window with nested windows). If there is any uncertainty, you might consider labeling a button or menu command with something more explicit.
Tip |
---|
DataWindow:OK() disconnects itself from the data server using DataServer:UnregisterClient() and tells the server that it can close itself if it has no other registered clients. Explicitly forcing the server to close from a window is not recommended, since this can create future problems. Modifications to the application can attach other clients to the server, and any one window should not disable other windows. |
See Also