void clicked() { WMSPallet wmsPallet; select wmsPallet where wmsPallet.wMSPalletId==InventDimGrid_wMSPalletId.valueStr(); if(wmsPallet.wMSLocationId != InventDimGrid_wMSLocationId.valueStr()) { warning(strFmt(“Number of pallet %1 does not match in number of location %2″,InventDimGrid_wMSPalletId.valueStr(),InventDimGrid_wMSLocationId.valueStr())); error(“Posting has been canceled”); } else { super(); } }