Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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::CodeunitCodeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromAnyBatch''', true, true)]
    procedure OnGetCountOrders_OnAfterSetFromAnyBatch(_RecRef: RecordRefvar _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
    end;


Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromAnyBatch''', true, true)]
    procedure MyOnGetCountOrders_OnAfterSetFromAnyBatch(_RecRef: RecordRefvar _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    var
        DataTypeManagement: Codeunit "Data Type Management";
        NewFieldRef: FieldRef;
    begin
        with _BaseOrderElement do begin
            if DataTypeManagement.FindFieldByName(_RecRef, NewFieldRef, 'Journal Template Name'then
                SetValue('MyJournalTemplateName''Journal Template Name: ' + CopyStr(NewFieldRef.Value()1, NewFieldRef.Length()));



            Set_DisplayLine2('Set from OnCountOnAfterSetFromAnyBatch')// override value previously set at table event
        end;
    end;



More examples


Version History

VersionChanges
MOB5.00Introduced
  • No labels