Use this event to
Excerpt |
---|
Set custom "lookup BinContent" 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::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnBinContent_OnAfterSetFromBinContent', '', true, true)]
local procedure OnLookupOnBinContent_OnAfterSetFromBinContent(_BinContent: Record "Bin Content"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnBinContent_OnAfterSetFromBinContent', '', true, true)]
local procedure MyOnLookupOnBinContent_OnAfterSetFromBinContent(_BinContent: Record "Bin Content"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
_LookupResponseElement.Set_DisplayLine1('Set from OnLookupOnBinContent_OnAfterSetFromBinContent');
_LookupResponseElement.SetValue('ZoneCode', 'OnLookupOnBinContent_OnAfterSetFromBinContent Custom Tag for Zone Code ' + _BinContent."Zone Code");
end;
Version History
Version | Changes |
---|---|
MOB5.00 | Introduced |
Filter by label (Content by label) showLabels false showSpace false sort title title More examples excerptType simple cql label = "bc" and label = "bincontent" and label = "example"