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

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 (optional)
  • 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::CodeunitCodeunit::"MOB WMS Toolbox", 'OnSaveRegistrationValue''', true, true)]
    procedure OnSaveRegistrationValue(_Path: Text; _Value: Textvar _MobileWMSRegistration: Record "MOB WMS Registration"; var _IsHandled: Boolean)
    begin
    end;

 

Example

 

Version History

VersionChanges
MOB5.11Introduced
  • No labels