Edit

ModalJobsheetEntryWindow (slotOrSelOrType [, property_array])

Result Type:  boolean

Definition:  Opens a modal jobsheet entry window to allow the user to view/edit an existing jobsheet entry or selection of jobsheet entries, or enter a new one.

The parameter slotOrSelOrType may be a number, a selection, or a string.

Provide a slot/record number (param type is number) of an existing jobsheet record to allow viewing/editing of that record.

Provide a selection of jobsheet records (param type is selection) to modify that selection (the Next and Prev buttons will be available).

Provide a type code (param type is string) (one of "PE" or "BU") to create a pending or budget jobsheet record.

You can provide an optional properties associative array which will be used to initialise the properties array of the window. You can used other script handlers specialised for the F_JOBSHTEENT window to access them via GetWindowProperty.

The return value of ModalJobsheetEntryWindow will be non-zero if the user did not cancel.

Availability:  available within MWScript handlers in MoneyWorks Gold v9.1.4 and later.

See Also:

CreateWindow: Instantiate a modeless custom window

ModalListWindow: Instantiate a modal custom database table list window

ModalTransactionWindow: Run a modal transaction modify/create window

ModalWindow: Instantiate a modal custom window