Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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



Example of how to add Serial Number Validation to "Unplanned Move"


Step 1: 

This will add the necessary functions to enable Online Validation.


Step 1.1

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

Code Block
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"

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

...