OnSaveRealtimeRegistrationValue
Use this event to
Validate and save collected values to "MOB Realtime Reg Qty."-table.
- Handle custom formats for existing fields
- avoiding validation errors
- Validate format for new custom steps
- throw meaningful error message, rather than error messages received from standard posting functions
- Transfer new custom steps to custom fields
See also
To overwrite existing or handle new document types. See OnLiveUpdateOnCustomDocumentType instead
Description
You can use this feature to have the registration data continuously sent to BC, every time the user performs registration.
- See details Register Realtime Quantity (Liveupdate)
This event is triggered for each and every value received.
Standard functionality
The current registrations are stored in "MOB WMS RealtimeReg. Qty." -table.
- Only standard steps like Bin, Serial No. Quantity etc. are handled
- If you want to save custom line steps, you can do that using this event
Template
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnSaveRealtimeRegistrationValue', '', true, true)]
local procedure OnSaveRealtimeRegistrationValue(_Path: Text; _Value: Text; var _RealtimeRegistration: Record "MOB Realtime Reg Qty."; var _IsHandled: Boolean)
begin
end;
Example
// [Example]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Toolbox", 'OnSaveRealtimeRegistrationValue', '', true, true)]
local procedure Ex01OnSaveRealtimeRegistrationValue(_Path: Text; _Value: Text; var _RealtimeRegistration: Record "MOB Realtime Reg Qty."; var _IsHandled: Boolean)
begin
// Read a custom line step value
if _Path = 'MyCustomStep' then;
// Overwrite the handling of a standard step value
if _Path = 'ToBin' then begin
_RealtimeRegistration.FromBin := CopyStr(_Value, 1, MaxStrLen(_RealtimeRegistration.FromBin));
_IsHandled := true;
end;
end;
More examples
Filter by label
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.24 | Introduced |