Introduction
A "collector step" can be Online validated During the registration as opposed to during posting.
Following is standard collector steps are supported
- Lot number
- Serial number
- Quantity
From Bin
To Bin
Tote
Note |
---|
Online Validation limits the Offline capabilities of the system. |
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"/>
</validation> |
Lot number validation
Modify the application.cfg
Add the "<validation>" tag.
Code Block | ||
---|---|---|
| ||
</service>
<service id="Pick" type="Order" orderType="Pick">
<validation>
<lotNumberValidation online="true"/>
</validation>
<requests>
..
</requests>
</service> |
Serial number validation
Todo
Quantity validation
Todo
Using Windows
Supported validations
Code Block | ||
---|---|---|
| ||
<validation>
<lotNumber enabled="true" requestDocumentName="ValidateLotNumber"/>
<serialNumber enabled="true" requestDocumentName="ValidateSerialNumber"/>
<quantity enabled="true" requestDocumentName="ValidateQuantity"/>
<toBin enabled="true" requestDocumentName="ValidateToBin"/>
<fromBin enabled="true" requestDocumentName="ValidateFromBin"/>
<tote enabled="true" requestDocumentName="ValidateTote"/>
</validation> |
Lot number validation
The code snippet below shows how to enable online lot number validation.
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 request document name
By default the application will call the document 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> |
Serial number validation
Validation scope
It is possible to tweak how restrictive the application is when it comes to validating serial numbers.
Setting Validation Scope
Code Block |
---|
<configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2009/01/ServiceConfiguration.xsd">
<ServiceType>Pick</ServiceType>
...
<validation>
<!--
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 by ommission): A serial number can only be registered once per order.
-->
<serialNumber mode="ORDER" />
</validation>
</configuration> |
Online validation
Enabling online serial number validation is near identical to enabling lot number validation.
Code Block |
---|
<configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2009/01/ServiceConfiguration.xsd">
<ServiceType>Pick</ServiceType>
...
<validation>
<serialNumber>
<!-- By default online validation is disabled, thus 'enabled="false"' -->
<online enabled="true"/>
</serialNumber>
</validation>
</configuration> |
Changing the request document name
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>
<serialNumber>
<!--
It is possible to override the name of the document the application will call in the ERP system.
By default it will assume the value 'GetSerialNumberInformation'.
-->
<online enabled="true" requestDocumentName="GetSerialNumberInformationExtended"/>
</serialNumber>
</validation>
</configuration> |
Quantity validation
Code Block |
---|
<configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2009/01/ServiceConfiguration.xsd">
<ServiceType>Pick</ServiceType>
...
<validation>
<quantity enabled="true" requestDocumentName="ValidateQuantity"/>
</validation>
</configuration> |
...
Step 1: Enable Online validation
See Online Validation to enable online validation.
Step 2: Add "Mobile Document Type"
Make sure a document type exists and points to a processing codeunit.
Pleas use (or take inspiration from) Codeunit 6181379 "MOB WMS Whse. Inquiry"
Step 3: Add "Mobile Document Type" to "Mobile Group"
Press the "Groups" action and add the new type to the relevant groups.
Failing to do so will result in the following error:
Step 4: 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); |