Use this event to
Excerpt |
---|
Set custom "lookup LocateItem" values for <LookupResponse>-elements derived from Item. |
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>BLUE</Location>
<ItemNumber>1928-S</ItemNumber>
<LookupType>LocateItem</LookupType>
</requestData>
</request>
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnAfterSetFromItem', '', true, true)]
procedure OnLookupOnLocateItem_OnAfterSetFromItem(_Item: Record Item; _ItemVariant: Record "Item Variant"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnLocateItem_OnAfterSetFromItem', '', true, true)]
procedure MyOnLookupOnLocateItem_OnAfterSetFromItem(_Item: Record Item; _ItemVariant: Record "Item Variant"; var _LookupResponseElement: Record "MOB NS WhseInquery Element")
begin
with _LookupResponseElement do begin
Set_DisplayLine1('Set from OnLocateItemOnAfterSetFromItem');
SetValue('WarehouseClassCode', 'OnLocateItemOnAfterSetFromItem Custom Tag for Warehouse Class Code ' + _Item."Warehouse Class Code");*
end;
end;
Version History
Version | Changes |
---|---|
MOB5.00 | Introduced |
...