...
Code Block | ||
---|---|---|
| ||
// >> SendToPickRobot local procedure SendToPickRobot(XMLRequestDoc: XmlDocument; var ReturnRegistrationTypeTracking: Text[200]): Text[60]; var MobXmlMgt: Codeunit "MOB XML Management"; OrderBackendID: Code[2023]; LineNumber: Integer; begin // Disable the locktimeout to prevent timeout messages on the mobile device LOCKTIMEOUT(false); MobDocQueue.LoadXMLRequestDoc(XMLRequestDoc); OrderBackendID := MobXmlMgt.XPathInnerText(XMLRequestDoc, '//req:OrderBackendID'); Evaluate(LineNumber, MobXmlMgt.XPathInnerText(XMLRequestDoc, '//req:LineNumber')); // Mock something that can be recognized at the mobile device for this example ReturnRegistrationTypeTracking := StrSubstNo('MOCK Fetch OrderBackendID %1, LineNumber %2', OrderBackendID, LineNumber); exit('MOCK PickRobot instructions was issued'); end; // << SendToPickRobot |
...