Versions Compared

Key

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

Use this event to

Excerpt

Handle existing or new 'Whse. Inquiry' document types as XML.

...

You can use Whse. Inquiry to perform instant Online validationValidation of a steps input value. 

...

You must call Error() when validation should fail.


 

Template

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

          // ... custom code here ...
       
        _IsHandled := true;
    end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label = "onwhseinquiryoncustomdocumenttypeasxml"

...