Use this event to
Handle existing or new 'Whse. Inquiry' document types as XML.
Description
You can use Whse. Inquiry to perform instant Online validation of a steps input value.
Use this event to overwrite existing behavior or handle new custom types.
Implicit success
If you do nothing, the validation is considered successful by the mobile device.
You must call Error() when validation should fail.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentTypeAsXml', '', true, true)]
procedure OnWhseInquiryOnCustomDocumentTypeAsXml(var _XMLRequestDoc: XmlDocument; var _XMLResponseDoc: XmlDocument; _DocumentType: Text; var _RegistrationTypeTracking: Text[200]; var _IsHandled: Boolean)
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentTypeAsXml', '', true, true)]
procedure OnWhseInquiryOnCustomDocumentTypeAsXml(var _XMLRequestDoc: XmlDocument; var _XMLResponseDoc: XmlDocument; _DocumentType: Text; var _RegistrationTypeTracking: Text[200]; var _IsHandled: Boolean)
begin
if (_DocumentType <> 'MyCustomWhseInquiryDocumentType') or _IsHandled then
exit;
// ... custom code here ...
_IsHandled := true;
end;
More examples
-
How-to: Online Validation for Unplanned Step — "onlineValidation" on Steps can instantly validate the entered data, with a call to the back-end
-
Version History
Version | Changes |
---|---|
MOB5.11 | Introduced |