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 can only be stopped "counters" are only visible 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::Codeunit, Codeunit::"MOB WMS LookupMOB Time Tracking Management", 'OnLookupOnProdOutput_OnIncludeProductionOutputOnAfterFilterTimeTrackingEntry', '', true, true)]
local procedure OnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine OnAfterFilterTimeTrackingEntry(var _MobTimeTrackingEntry: Record "Prod. Order Routing LineMOB Time Tracking Entry"; var _IncludeInOrderLines: Boolean));
begin
end;
Example
// [Example] Hide all operations if final operation is fully output (standard will allow further output even when everything is produced accordingly to the Prod. Order Line) Override existing filter in order to allow the MobileUserID to start/stop time on any device
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS LookupMOB Time Tracking Management", 'OnLookupOnProdOutput_OnIncludeProductionOutputOnAfterFilterTimeTrackingEntry', '', true, true)]
local procedure MyOnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine MyOnAfterFilterTimeTrackingEntry(var _MobTimeTrackingEntry: Record "Prod. Order Routing LineMOB Time Tracking Entry"; var _IncludeInOrderLines: Boolean));
begin
if _ProdOrderLineMobTimeTrackingEntry.SetRange("Remaining Quantity" = 0 then
_IncludeInOrderLines := falseDevice ID");
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Version History
Version | Changes |
---|---|
MOB5. |
29 | Introduced |