Use this event to
Validate and save collected values to "MOB Registration"-table.
Description
This event is triggered for each collected value received from the Mobile Device "Post" request when values is stored to the "RegistrationData"-table.
The RegistrationData-table is what is used for all Mobile WMS Posting functions.
You can use this event to:
- handle custom format for existing fields (including formats that would otherwise cause validation error when attempting to assign to RegistrationData).
- validate format for new custom steps (throw meaningful error message here, rather than error messages received from standard posting functions).
- transfer new custom steps to custom fields at RegistrationData.
- by using this event to set or validate values in RegistrationData, you may (in some cases) be able to avoid doing any further customizations to posting routines.
Note: Creating new custom fields at RegistrationData to pass data to posting routines is no longer required since MOB5.10. You can read custom values from RegistrationData directly via .GetValue(...)
-functions in any code or eventsubscribers where you got access to the RegistrationData-table.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnSaveRegistrationValue', '', true, true)]
procedure OnSaveRegistrationValue(_Path: Text; _Value: Text; var _MobileWMSRegistration: Record "MOB WMS Registration"; var _IsHandled: Boolean)
begin
end;
Example
-
Case: Scan ExpirationDate in custom format — Scan ExpirationDate as custom format YYYYMM when goods is received from any Vendor.
-
OnSaveRegistrationValue — Validate and save collected values to "MOB WMS Registration"-table.
Version History
Version | Changes |
---|---|
MOB5.11 | Introduced |