Versions Compared

Key

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

Use this event to

Excerpt

Populate values in Orders displayed at the mobile device (derived from "Whse. Phys. Invt. Journals").

...

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch''', true, true)]
    procedure OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch(_WhseJnlBatch: Record "Warehouse Journal Batch"; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
    end;


Example 1

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch''', true, true)]
    procedure OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch(_WhseJnlBatch: Record "Warehouse Journal Batch"; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
        with _BaseOrderElement do begin
            Set_DisplayLine1('Set from OnCountOnAfterSetFromWarehouseJournalBatch');
            Set_HeaderValue1(Format(_WhseJnlBatch."Template Type"));
        end;
    end;

Example 2

    // [Example]: Sort by custom tag
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Count", 'OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch''', true, true)]
    procedure SortByCustomTag_OnGetCountOrders_OnAfterSetFromWarehouseJournalBatch(_WhseJnlBatch: Record "Warehouse Journal Batch"; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element")
    begin
        with _BaseOrderElement do begin
            Set_Sorting1(Format(_WhseJnlBatch."Template Type"));



            SetValue('MyTemplateName', _WhseJnlBatch."Journal Template Name");
            Set_Sorting2(GetValue('MyTemplateName'));
        end;
    end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "orders" and label = "example" and label = "onaftersetfrom"

...