Description
The standard Online validation can be setup for (planned) steps without further customization, to validate:
Use case
Tells the user whether an input value is correct.
- For Lot Number, it verifies that the Lot exists.
- For Serial Number, it 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.
- For Bin code, it verifies that the Bin exists in 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> <getOrders>GetPickOrders</getOrders> <getOrderLines>GetPickOrderLines</getOrderLines> <postOrder>PostPickOrder</postOrder> </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>
Result examples:
Error Lot Number Online Validation Error Serial Number Online validation Error Bin Code Online Validation
See also
-
-
Online Validation — A line step can be Online or Offline validated. This is opposed to on posting (header steps)
-
How-to: Standard Online Validation — The system comes with a few predefined common online validation options.
-
How-to: Online Validation for Unplanned Step — "onlineValidation" on Steps can instantly validate the entered data, with a call to the back-end
-
How-to: Online Validation for Line step — Online Validation on Steps can instantly validate the user data, with a call to BC.
-
How to add validation for static workflows through code — Write a new class that adds the possibility to validate values entered on the device during receipt process
-
-
Case: Return Quantity based on scanned lot number — In the planned pick process, the customer want to scan a lot number and get the quantity on inventory proposed in the quantity step.
-
(Legacy) How-to: Online Validation for Planned step (MOB5.11 - MOB5.24) — "onlineValidation" on Steps can instantly validate the entered data, with a call to the back-end