OnGetCountOrders_OnAfterSetFromAnyBatch
Use this event to
Populate values in Orders displayed at the mobile device (derived from "Phys. Inventory Journals" or "Whse. Phys. Invt. Journals"). Parameters includes a RecRef-instance for the header table.
This event is executed after each of these following events have been executed already:
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromAnyBatch', '', true, true)]
local procedure OnGetCountOrders_OnAfterSetFromAnyBatch(_RecRef: RecordRef; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromAnyBatch', '', true, true)]
local procedure MyOnGetCountOrders_OnAfterSetFromAnyBatch(_RecRef: RecordRef; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
var
DataTypeManagement: Codeunit "Data Type Management";
NewFieldRef: FieldRef;
begin
if DataTypeManagement.FindFieldByName(_RecRef, NewFieldRef, 'Journal Template Name') then
_BaseOrderElement.SetValue('MyJournalTemplateName', 'Journal Template Name: ' + CopyStr(NewFieldRef.Value(), 1, NewFieldRef.Length()));
_BaseOrderElement.Set_DisplayLine2('Set from OnCountOnAfterSetFromAnyBatch'); // override value previously set at table event
end;
More examples
-
How-to: Modify DisplayLines — Additional text displayed on a List.
-
How-to: Modify HeaderLabel and HeaderValue — Modify text in the top of Order Lines
-
How-to: Sorting of Orders — Examples of sorting Order list
Version History
Version | Changes |
---|---|
MOB5.00 | Introduced |