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:
- subscribing to this event
- 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::Codeunit, Codeunit::"MOB WMS Whse. Inquiry", 'OnWhseInquiryOnCustomDocumentType', '', true, true)]
local procedure OnWhseInquiryOnCustomDocumentType(_DocumentType: Text; var _RequestValues: Record "MOB NS Request Element"; var _RegistrationTypeTracking: Text; var _ResponseElement: Record "MOB NS Resp Element"; var _IsHandled: Boolean)
begin
end;
Example
TODO
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.24 | Introduced |