You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 11 Current »
Modify text in the top of Order Lines
See also: How-to: Modify DisplayLines
The Order lines page have two available lines in the header.
Subscribe to an "OnAfterSetFrom"-event and use the Set_HeaderLabel and Set_HeaderValue1/2.
In this example we add a new Header and Value in between the existing.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrders_OnAfterSetFromAnyHeader', '', true, true)] procedure OnGetReceiveOrders_OnAfterSetFromAnyHeader(_RecRef: RecordRef; var _BaseOrderElement: Record "MOB Ns BaseDataModel Element") var MobToolbox: Codeunit "MOB Toolbox"; begin _BaseOrderElement.Set_HeaderLabel1(_BaseOrderElement.Get_HeaderLabel1() + MobToolbox.CRLFSeparator() + 'MyLabel'); _BaseOrderElement.Set_HeaderValue1(_BaseOrderElement.Get_HeaderValue1() + MobToolbox.CRLFSeparator() + 'MyValue'); end;
There are no items with the selected labels at this time.