Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Exp.date example. Typing errors

...

Code Block
languagexml
titleXML Example
<?xml version="1.0" encoding="utf-8"?>
<request name="ValidateLotNumber" created="2021-12-14T11:22:30+01:00" xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Request">
  <requestData name="ValidateLotNumber">
    <itemNumber>TF-003</itemNumber>
    <lineNumber>20000</lineNumber>
    <orderBackendId>RE000160</orderBackendId>
    <lotNumber>ScannedLotNumber<<ExpirationDate>13-07-2022</ExpirationDate>
    <lotNumber>ScannedLotNumber</lotNumber>
  </requestData>
</request>

...

Code Block
languagexml
titleXML Example
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Response" messageid="07E64DA6-2335-40C1-83DB-5C40E3043083" status="Completed">
  <responseData xmlns="http://schemas.taskletfactory.com/MobileWMS/BaseDataModel" />
</response>

If the status is returned as Completed, then the application will take that as a positive response. Other Another status will be interpreted as an error , and will prevent the user from going forward.

...

Generic step validation is a mechanism for validating any step in the workflow configuration, which does not have a specific validation element in the services section. This type of online validation still has the possibility to validate the current step and any previous step if setup set up to do so.
Configuration is done inside the workflow , and looks as follows.

Code Block
languagexml
<workflow id="customWorkflow" itemNumberAI="01,02,91">
  <configuration scanBehaviourWhenRegisteringQuantity="ScanNextItem" cancelBehaviour="Close" autoSave="false" fastForwardMode="InputAndScanValues">
    <steps>
       ...
       <text id="23" name="CustomTextField" header="Custom Text Field">
        <onlineValidation documentName="ValidateCustomTextField" online="true" includeCollectedValues="true"/>
      </text>
      <typeAndQuantity header="Type something" id="5" name="TypeAndQuantity" scanBehavior="Add">
        <onlineValidation online="true" documentName="ValidateTypeAndQuantity" includeCollectedValues="true"/>
      </typeAndQuantity>
      ...
    </steps>
  </configuration>
</workflow>

...

The generic online validator does have an extra feature when it comes to the Collector Step TypeAndQuantity step stype , which allows the backend to return a new displayname display name for the scanned value.
So instead of e.g. displaying a serial number, the item number or a human-readable name can be displayed on the control.
Notice that the display value (TypeDisplay) needs to contain all the information.

...

  • AllowEdit - Allows the user to edit the value in the quantity step.
  • ApplyDirectly - Hides the quantity step all together.altogether
  • VerifyOnly - Disables the quantity step, allowing the user to see, but not edit it.


Code Block
languagexml
titleXML Example
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Response" messageid="EA9FD6AF-78C6-47DE-82CE-3EB789FAFE64" status="Completed">
  <responseData xmlns="http://schemas.taskletfactory.com/MobileWMS/BaseDataModel">
    <LotNumberInformation xmlns="http://schemas.taskletfactory.com/MobileWMS/WarehouseInquiryDataModel">
      <Quantity>5</Quantity>
      <ValueInteractionPermission>ApplyDirectly</ValueInteractionPermission>
    </LotNumberInformation>
  </responseData>
</response>

...