Use this event to
Change the level of detail used when searching for existing entries when TimeTracking is started/stopped.
Description
You may change the level of detail used when searching for existing Time Tracking Entries when TimeTracking is started and stopped.
Default behaviour is time is recorded (started and stopped) per Mobile UserID and per DeviceID:
- If the Mobile UserID starts TimeTracking for an operation only that same mobile user can stop that "counter" for the operation.
- Also, the TimeTracking 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.
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 stop "counters" they started on other mobile devices themself.
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;
More examples
-
Case: Filter Receipts based on Comments — The user wants to filter Receipts on whether they have comments or not
-
How-to: Filter Order Lines — Examples of filtering Order Lines .
-
How-to: Filter Orders - Complex — Examples for including/excluding orders using complex per-document filtering
Version History
Version | Changes |
---|---|
MOB5.28 | Introduced |