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

« Previous Version 17 Next »

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::CodeunitCodeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentTypeAsXml''', true, true)]
    procedure OnWhseInquiryOnCustomDocumentTypeAsXml(var _XMLRequestDoc: XmlDocumentvar _XMLResponseDoc: XmlDocument; _DocumentType: Textvar _RegistrationTypeTracking: Text[200]; var _IsHandled: Boolean)
    begin
    end;


Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentTypeAsXml''', true, true)]
    procedure OnWhseInquiryOnCustomDocumentTypeAsXml(var _XMLRequestDoc: XmlDocumentvar _XMLResponseDoc: XmlDocument; _DocumentType: Textvar _RegistrationTypeTracking: Text[200]; var _IsHandled: Boolean)
    begin
        if (_DocumentType <> 'MyCustomWhseInquiryDocumentType') or _IsHandled then
            exit;

        // ... custom code here ...

        // TODO – Better example of how to return _RegistrationTypeTracking / see i.e. MoibWmsAdhocRegistration..CreateRegisterItemImageRegColConf()

        _IsHandled := true;
    end;


More examples


Version History

VersionChanges
MOB5.11Introduced
  • No labels