Use this event to
Save collected values to table "MOB Registration".
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 new custom steps format to throw meaningfull error messages
- 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 is no longer required since MOB5.10. You can now read custom values from RegistrationData directly via .GetValue(...)
-functions in any code or events 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 |