generate/cbs2.gif Warehouse Manager Dispatch Save (R-WHMDS.MAC) generate/enh73.jpg


 

The script file must be located in your CAPITAL program directory and must have the file name R-WHMDS.MAC.

The Save hook is called every time items are dispatched.

Entry Values

Variable

Purpose

RefNumber

The unique identifying reference ID of the entries saved to the Warehouse Manager audit trail after the dispatch process has occured. This reference number can be used to identify what items have been dispatched by querying the reference number in the audit trail file WMDTRAIL.DBF

RemoteCall

This value is set to TRUE if the scripting hook is being called from a Telnet compatible wireless session, otherwise this value is FALSE.

WMDTRAIL->X

The fields of the WHMDTRAIL (Warehouse Manager Dispatch Audit Trail) will be available for inspection. The first record with a matching RefNumber field will be pointed to on entry to this hook.

Return Values

None.

Description

This hook script can be used to perform tasks after goods have been dispatched from within the Warehouse Manager. This typically occurs when an operator presses the Save button. Possible tasks may include sending emails, running reports and printing forms and labels when specific conditions are met.

generate/mistake1.gifDo not place graphical user interface functions (such as Echo()) inside this scripting hook if RemoteCall is TRUE. Users running wireless telnet sessions will be unable to view or interact with these functions and their software will then freeze.

____________________________

Related Topics:

Scripting Hooks

Script Programming

Warehouse Manager Scripting Hooks

Warehouse Manager Receive Save



Help Topic Map