Scan, Pack and Ship > Screen Rendering > Full Auto Action Example
  
Full Auto Action Example
The following is an example of the system value configuration using the code snippets in the previous sections.
*************************************************************************
function (){
var barcodeScan = Ext.getCmp(\"barcodeScan\");
if (barcodeScan ){
barcodeScan.focus(true, true);
}
 
pageInfo.loadOutputTranCallback = {
fn : initiateBtnActionOnShipmentLoad,
disableOnPositivePackCount : true,
id : \"autoPackItemsMaxProductBtnId\"
};
 
pageInfo.itemPackingCallback = {
fn : initiateBtnActionOnItemPacking,
allItemsPacked : true,
id : \"shExtnBtn1Id\"
};
}
*************************************************************************
Configure the objects loadOutputTranCallback and itemPackingCallback using the members in Object Members.

Object Members
 
Member
Purpose
fn
Holds a reference to the function to be run. This member is mandatory.
id
Holds a reference to the button to be executed. This member is mandatory.
disableOnPositivePackCount
Activates a precondition check that determines whether the shipment contains no packs before the configured button handler is executed.
disableOnZeroPackCount
Activates a precondition check that determines whether the shipment contains one or more packs before the configured button handler is executed.
readOnlyDisable
Activates a precondition check that determines whether the shipment is loaded in read-write mode before the configured button handler is executed.
enableOnShipmentStatus
Lists the shipment statues for which the button handler is executed. The button is only executed when the shipment is equal to one of these statuses. If this member is not included in the configuration, the shipment status is not considered when determining whether to execute the button.
enableStatusList
Lists the pack statues for which the button handler is executed. The button handler is only executed when all packs on the shipment have one of these statuses.
allItemsPacked
Activates a precondition check that determines whether all items on the shipment have been packed before the configured button handler is executed.
hasUnpackedItems
Activates a precondition check that determines whether all items on the shipment have not been packed before the configured button handler is executed.