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 3 Next »

Use this event to

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

Description

Perform Online validation.

Overwrite existing behavior or handle new custom types.


Mobile Document Type

Optionally use this event to handle new custom Document Types in the 'Whse. Inquiry' document handler class.

You may handle new custom Document Types for Whse. Inquiry either by:

  1. subscribing to this event
  2. or: create a new handler class and change Mobile Document Type setup accordingly to direct the new custom Document Type to this new class. Handle your custom Document Type in OnRun in the new class.

Both courses of action are valid, and your choice may be dependent on how old code is structured when doing migrations from older MOB versions.


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentType''', true, true)]
    local procedure OnWhseInquiryOnCustomDocumentType(_DocumentType: Textvar _RequestValues: Record "MOB NS Request Element"; var _RegistrationTypeTracking: Textvar _ResponseElement: Record "MOB NS Resp Element"; var _IsHandled: Boolean)
    begin
    end;

Example

TODO


More examples


Version History

VersionChanges
MOB5.24Introduced
  • No labels