How-to: Standard Online Validation

Requirements

  • Extension version MOB5.44 (To Bin/ From Bin)

Description

The system comes with a few predefined common online validation options.

The standard Online Validation can be set up for Planned Functions steps without further customization, to validate:

  • Lot Number 
  • Serial Number
  • To Bin / From Bin

Use case

Tells the user whether an input value is correct.

  • LotNumber (ValidateLotNumber)
    • Verifies that the Lot no. exists.

  • SerialNumber (SerialNumberInformation)
    • Verifies that the Serial no. exists.
    • Verifies that the Serial number is being assigned only once, if not, it will return an error message with the item number that is associated with the Serial Number the user is trying to input.

  • To Bin /From-Bin (ValidateBinCode)
    • Verifies that the Bin exists on the specific Location.

How to enable it

The standard online validation only requires one step.

Step 1 - Enable Online Validation in the application.cfg

  • In the mobile configuration:
    • Add the "<validation>" tag in the service section according to the validation needed.
    • Make sure that the documentName matches exactly the Document type found in "Mobile Document Types" on Business Central.

       <service id="Pick" type="Order" orderType="Pick">
            <requests>
              <..>
            </requests>
             <validation>
                <lotNumberValidation online="true" documentName="ValidateLotNumber" includeCollectedValues="true"/>
                <serialNumberValidation online="true" documentName="GetSerialNumberInformation"/>
                <fromBinValidation online="true" documentName="ValidateBinCode"/>
                <toBinValidation online="true" documentName="ValidateBinCode"/> 
              </validation> 
          </service>

Step 2 - Invoke the validation

See Online Validation

Result examples:



                                

       Error Bin Code Online Validation                  Error Lot Number Online validation             Error Serial Number Online Validation