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 3 Next »

Use this event to

Populate values in Label Templates displayed at the mobile device (derived from "MOB Label-Template").

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate''', false, false)]
    local procedure OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate(_LabelTemplate: Record "MOB Label-Template"; _SourceRecRef: RecordRefvar _LookupResponseElement: Record "MOB NS WhseInquery Element")
    begin
    end;


Example

    // [Example] Display entire template name as DisplayLine1 ("unsplit" displayline 1 and 2)
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnPrintLabel_OnAfterSetFromLabelTemplate''', false, false)]
    local procedure MyOnLookupOnPrintLabel_OnAfterSetFromLabelTemplate(_LabelTemplate: Record "MOB Label-Template"; _SourceRecRef: RecordRefvar _LookupResponseElement: Record "MOB NS WhseInquery Element")
    begin
        _LookupResponseElement.Set_DisplayLine1(_LookupResponseElement.Get_DisplayLine1() ' ' + _LookupResponseElement.Get_DisplayLine2());
        _LookupResponseElement.Set_DisplayLine2('');
    end;



More examples


Version History

VersionChanges
MOB5.29Introduced
  • No labels