Use this event to
Excerpt |
---|
Handle existing or new 'Whse. Inquiry' document types as XML. |
Description
Perform Online validation.
Overwrite 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.
Mobile Document Type
You may handle new custom Document Types for Whse. Inquiry either by:
...
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.
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)]
local 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)]
local procedure OnWhseInquiryOnCustomDocumentTypeAsXml MyOnWhseInquiryOnCustomDocumentTypeAsXml(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 ...
// TODO – Better example of how to return _RegistrationTypeTracking / see i.e. MoibWmsAdhocRegistration..CreateRegisterItemImageRegColConf()
_IsHandled := true;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...