Use this event to
Excerpt |
---|
Change the level of detail used when searching for existing entries when TimeTracking is started/stopped. |
...
This default behavior can be changed using this event. A sample use could be to no longer allow users to share the same Mobile UserID - but in return allow the Mobile UserID to now stop users to start/stop their own "counters" they started on other any mobile devices themselfthey log into with their personal Mobile UserID.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Time Tracking Management", 'OnAfterFilterTimeTrackingEntry', '', true, true)]
local procedure OnAfterFilterTimeTrackingEntry(var _MobTimeTrackingEntry: Record "MOB Time Tracking Entry");
begin
end;
Example
// [Example] Override existing filter in order to allow the MobileUserID to start/stop time on any devices
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Time Tracking Management", 'OnAfterFilterTimeTrackingEntry', '', true, true)]
local procedure MyOnAfterFilterTimeTrackingEntry(var _MobTimeTrackingEntry: Record "MOB Time Tracking Entry");
begin
_MobTimeTrackingEntry.SetRange("Device ID");
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...