Versions Compared

Key

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

Use this event to

...

  • This event is only for lines. For everything else use OnPrintLabel_OnAfterPopulateDataset
  • Make sure you are only handling the desired template
  • Use GetValue/SetValue to modify the dataset

...

Standard Label Template Designs


Template

[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Print", 'OnPrintLabel_OnAfterPopulateOrderListLine', '', true, true)]
    localprocedureOnPrintLabelOnAfterPopulateDataset(_LinePath: Text; _SourceRecRef: RecordRef; var_Dataset: Record"MOB Common Element")
    begin
    end;


Expand
titleClick here for parameters...
  • _LinePath
    • Name of the template to handle
  • _SourceRecRef
    • A RecordRef to the context the print is called from.
    • I.e. Sales Order Line, Warehouse Receipt Line, Purchase Order Return Line, Warehouse Activity(Pick, Put-away) etc.
  • _Dataset

...