Edit

ModalTransactionWindow (seqOrSelOrType [, property_array])

Result Type:  boolean

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

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

Provide a sequence number (param type is number) of an existing transaction to allow viewing/editing of that transaction.

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

Provide a transaction type code (param type is string) (one of "CR", "CP", "DI", "CI", "JN", "SO", "PO", "QU") to create a new transaction of that type. Note that the user can change the type of the transaction.

If the paremeter is a different type or an invalid transaction type code, the default is to make a new transaction with the default (last used) transaction type.

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_TRANS window to access them via GetWindowProperty.

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

Availability:  available within MWScript handlers in v9.1 and later.

See Also:

CreateWindow: Instantiate a modeless custom window

ModalJobsheetEntryWindow: Run a modal Jobsheet entry modify/create window

ModalListWindow: Instantiate a modal custom database table list window

ModalWindow: Instantiate a modal custom window