OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate
Use this event to
Modify values for <LookupResponse>-elements (values transferred from "MOB Label-Template" table)
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate', '', false, false)]
local procedure OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate(_LabelTemplate: Record "MOB Label-Template"; _SourceRecRef: RecordRef; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
end;
Example
// [Example] Display entire template name as DisplayLine1 ("unsplit" displayline 1 and 2)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate', '', false, false)]
local procedure MyOnLookupOnPrintLabel_OnAfterSetFromLabelTemplate(_LabelTemplate: Record "MOB Label-Template"; _SourceRecRef: RecordRef; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
_LookupResponseElement.Set_DisplayLine1(_LookupResponseElement.Get_DisplayLine1() + ' ' + _LookupResponseElement.Get_DisplayLine2());
_LookupResponseElement.Set_DisplayLine2('');
end;
More examples
-
(Legacy) Case: Print muliple labels with unique lot numbers (MOB5.23-MOB5.38) — Option to generate and print multiple unique labels
-
Case: Print Customized License Plate Contents label (Cloud Print) — Modify the column and lines on License Plate Contents.
-
Case: Print Label on Planned Function Posting (Cloud Print) — Print Label on Planned Posting, i.e. Receive, Pick, Put-away, Ship, Move etc.
-
Case: Print Label on Tote Shipping Posting (Cloud Print) — Print Label on the posting of Tote Shipping.
-
Case: Print muliple labels with unique lot numbers (Cloud Print) — Option to generate and print multiple unique labels
-
Case: Print your own ZPL labels (Cloud Print) — Print your own ZPL labels
-
Cloud Print: How to Copy a Label-Template to New — In this video, we will make a copy an existing label-template
-
Cloud Print: How to modify label-template — In this video, you will be introduced to modify the design of a label-template, using the designer.
-
Cloud Print: How to modify label-template and add data — In this video, you will be introduced to modifying the design of a label template, using the designer, and adding data using AL code.
-
How-to: Add data to label-template (Cloud Print) — You want to modify a label template by adding data to it
-
How-to: Add new/Copy a label-template (Cloud Print) — You want to add/create a custom label template with a unique design
-
How-to: Modify steps on a label-template (Cloud Print) — Modify collected steps before a Label-template is printed.
Version History
Version | Changes |
---|---|
MOB5.29 | Introduced |