Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Validate and save collected values to "MOB WMS Registration"-table.

 


DescriptionDescription

Mobile registrations form a planned function are stored in the "MOB WMS Registration"-table.

This event is triggered for each collected and every value received from in 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 Handle custom format formats for existing fields (including formats that would otherwise cause validation error when attempting to assign to RegistrationData).validate
    • avoiding validation errors 
  • Validate format for new custom steps (
    • throw meaningful error message
    here
    • , rather than error messages received from standard posting functions
    ).
  • transfer Transfer new custom steps to custom fields at RegistrationData. fields 
    • by using this event to
    set or validate values in RegistrationData,
    • save values you may (in some cases) be able to avoid doing any further customizations to posting routines
    .

...



Tip

Saving custom values in MOB WMS Registration -to save data to posting routines is no longer not required since MOB5version 5.10.

You can read custom values from RegistrationData directly via .GetValue(...)-functions in any code or eventsubscribers Event Subscriber where you've got access to the RegistrationDataMOB WMS Registration-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

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
excerptTypesimple
excludeCurrenttrue
cqllabel = "bc" and label = "onsaveregistrationvalue" and label = "example"

 

Version History

VersionChanges
MOB5.11Introduced