Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

Unplanned (Ad-hoc) collector steps can also be used with Online Validation to check the user entered data.


Example of Serial Number Validation


Step 1: 

This will add the necessary functions to enable Online Validation.


Step 1.1

Create the following (non-local) function "RC_SetOnlineValidationName"

RC_SetOnlineValidationName(_Name : Text)
OnlineValidationName := _Name;


Step 1.2

Create a global variable "OnlineValidationName" of type Text


Step 1.3
Add the following to the end of function "RC_Step_XmlNode"

IF OnlineValidationName <> '' THEN BEGIN
  MobXMLMgt.AddElement(XMLAddElement,'onlineValidation','',XMLSteps.NamespaceURI,XMLAddElement);
  MobXMLMgt.AddAttribute(XMLAddElement,'documentName',OnlineValidationName);
  MobXMLMgt.AddAttribute(XMLAddElement,'online','true');
END;


Step 2:

In Codeunit 6181380 "MOB WMS Adhoc Registr."

Call the new function to set the name of the validation. Here we name it "'ValidateSerialNumber".


Step 3:

In Codeunit 6181379 "MOB WMS Whse. Inquiry"

Enter your validation logic here to check Serial no. is correct.


Step 4:

Create a new Mobile Document type with code "ValidateSerialNumber".

Add the "WMS" Mobile Group to this new Document type.




You should noew be able to use online validation.




Related articles

Filter by label

There are no items with the selected labels at this time.



  • No labels