Versions Compared

Key

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

Use this event to

...

  • If the Mobile UserID starts TimeTracking for an operation only that same mobile user can see (and stop) that "counter" ("stopwatch") for the operation.
  • Also, the TimeTracking is "counters" are only visible on (and can only be stopped on) the same device that originally started the "counter" (and therefore can only be stopped from the exact same device).
  • 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 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::CodeunitCodeunit::"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  Override existing filter in order to allow the MobileUserID to start/stop time on any device
    [EventSubscriber(ObjectType::CodeunitCodeunit::"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)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label = "onafterfiltertimetrackingentry"

  

Version History

VersionChanges
MOB5.
28
29Introduced