...
A "collector step" can be Online or Offline validated During the registration - as opposed to during posting.
...
How to enable using Android
Supported validations
Code Block | ||
---|---|---|
| ||
<validation> <lotNumberValidation online="true" documentName="ValidateLotNumber"/> <serialNumberValidation online="true" documentName="ValidateSerialNumber"/> <fromBinValidation online="true" documentName="ValidateFromBin"/> <toBinValidation online="true" documentName="ValidateToBin"/> <toteValidation online="true" documentName="ValidateTote"/> <quantityValidation online="true" documentName="ValidateQuantity"/> </validation> |
...
Step 1: Modify the application.cfg
Add the "<validation>" tag.
Code Block | ||
---|---|---|
| ||
<service id="Pick" type="Order" orderType="Pick"> <validation> <lotNumberValidation online="true" documentName="ValidateLotNumber"/> </validation> </service> |
...
...
Setting Serial Number Validation Level
...
(optional)
When using Serial Number validation, you can also set the "ValidationLevel" for how restrictive to validating serial numbers.
Code Block | ||
---|---|---|
| ||
<service id="Pick" type="Order" orderType="Pick"> <validation> <serialNumberValidation online="true" documentName="ValidateSerialNumber" validationLevel="Line"/> </validation> </service> |
The levels are:
- Item: The same serial number can only be registered once per item, but multiple times across items.
- Line: A serial number can only be registered once per order line, but multiple times per order.
- Order (default): A serial number can only be registered once per order
Step 2: Add Mobile Document Type
Make sure a document type exists and points to a Processing Codeunit.
...
processing codeunit.
Pleas use (or take inspiration from) Codeunit 6181379 "MOB WMS Whse. Inquiry"
Step 3: Write you validation code
Edit your processing codeunit.
If the validation succeeds return the OK message:
Code Block |
---|
MobBaseToolbox.CreateSimpleResponse(XMLResultDoc,'OK'); |
If the validation fails, create an error:
Code Block |
---|
ERROR(MobWmsLanguage.GetMessage('UNKNOWN_LOT'),LotNumber); |
How to enable using using Windows
Supported validations
...
The code snippet below shows how to enable online lot number validation.
Step 1: Modify the app.config file
Code Block | ||
---|---|---|
| ||
<configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2009/01/ServiceConfiguration.xsd"> <ServiceType>Pick</ServiceType> ... <validation> <lotNumber enabled="true" requestDocumentName="ValidateLotNumber"/> </validation> </configuration> |
Changing the
...
Mobile Document Type
By default the application will call the document Mobile Document type "ValidateLotNumber"
in the ERP system. It is, however, possible to override the name if another document handler should be invoked.
Overriding the Document Name of the Request
Code Block | ||
---|---|---|
| ||
<configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2009/01/ServiceConfiguration.xsd"> <ServiceType>Pick</ServiceType> ... <validation> <lotNumber> <!-- It is possible to override the name of the document the application will call in the ERP system. By ommision it will default to the value 'ValidateLotNumber'. --> <online enabled="true" requestDocumentName="ValidateLotNumberExtended"/> </lotNumber> </validation> </configuration> |
Setting Serial Number Validation Level
...
(optional)
When using Serial Number validation, you can also set the "ValidationLevel" for how restrictive to validating serial numbers.
...
- Item: The same serial number can only be registered once per item, but multiple times across items.
- Line: A serial number can only be registered once per order line, but multiple times per order.
- Order (default): A serial number can only be registered once per order
Step 2: Add Mobile Document Type
Make sure a document type exists and points to a Processing Codeunit.Step 3: Write you validation code
Edit your processing codeunit.
If the validation succeeds return the OK message:
Code Block |
---|
MobBaseToolbox.CreateSimpleResponse(XMLResultDoc,'OK'); |
If the validation fails, create an error:
Code Block |
---|
ERROR(MobWmsLanguage.GetMessage('UNKNOWN_LOT'),LotNumber); |