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

 Use this event to

Set custom values for <LookupResponse>-elements (values transferred from "Bin Content" table).


Sample request

<request name="Lookup" created="2019-08-14T10:39:46+02:00" xmlns="http://schemas.microsoft.com/Dynamics/Mobile/2007/04/Documents/Request">
     <requestData name="Lookup">
          <Location>SILVER</Location>
          <Bin>S-01-0001</Bin>
          <LookupType>BinContent</LookupType>
     </requestData>
</request>

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnBinContent_OnAfterSetFromBinContent''', true, true)]
    procedure OnLookupOnBinContent_OnAfterSetFromBinContent(_BinContent: Record "Bin Content"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
    begin
    end;

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Lookup", 'OnLookupOnBinContent_OnAfterSetFromBinContent''', true, true)]
    procedure MyOnLookupOnBinContent_OnAfterSetFromBinContent(_BinContent: Record "Bin Content"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
    begin
        with _LookupResponseElement do begin
            Set_DisplayLine1('Set from OnLookupOnBinContent_OnAfterSetFromBinContent');
            SetValue('ZoneCode''OnLookupOnBinContent_OnAfterSetFromBinContent Custom Tag for Zone Code ' + _BinContent."Zone Code");
        end;
    end;

Version History

VersionChanges
MOB5.00Introduced
  • No labels