Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Populate values in Label Templates displayed at the mobile device (derived Modify values for <LookupResponse>-elements (values transferred from "MOB Label-Template" table).



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;



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


Version History

VersionChanges
MOB5.29Introduced

...