Edit

ModalListWindow (id, table, search, headingString, columnsString [, modes] [, properties])

Definition:  A variant of CreateListWindow for displaying a list of records in a modal window. ModalListWindow does not automatically provide double-click-to-edit-in-a-new-window functionality.

The window's first control (object #1) should be a list object. It will be replaced with a record list for the requested database table named by the table parameter. The list will be filtered according to the search string.

See CreateListWindow for the definition of the remaining parameters.

The window should have OK and Cancel buttons. The return value is the identifier of the last button clicked.

In v9 and later, you can provide an optional properties associative array which will be used to initialise the properties of the window (that you would otherwise set and get with SetWindowProperty and GetWindowProperty. This removes the need to use global properties to pass parameters to window handlers. Note that to provide properties this way you must also provide a modes parameter (use 0 if you don't need special modes).

Availability:  available within MWScript handlers.

See Also:

CreateWindow: Instantiate a modeless custom window

ModalJobsheetEntryWindow: Run a modal Jobsheet entry modify/create window

ModalTransactionWindow: Run a modal transaction modify/create window

ModalWindow: Instantiate a modal custom window