Use this event to
Excerpt |
---|
Change the level of detail used when searching for existing entries when TimeTracking is started/stopped. |
...
- If the Mobile UserID starts TimeTracking for an operation only that same mobile user can see and stop that "counter" for the operation.
- Also, the TimeTracking is only visible on (and can only be stopped on) the same device that originally started the "counter".
- This allows multiple users to share the same Mobile UserID as long as they are using separate devices.
...
[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) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...