OnSearchOnCustomSearchType
Use these events to
Implement your own custom SearchType or override standard SearchTypes.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Online Search", 'OnSearchOnCustomSearchType', '', true, true)]
local procedure OnSearchOnCustomSearchType(_MessageId: Guid; _SearchType: Text; var _RequestValues: Record "MOB NS Request Element"; var _SearchResponseElement: Record "MOB NS SearchResult Element"; var _IsHandled: Boolean)
begin
// Your custom code here...
_IsHandled := true;
end;
Examples
-
How-to: Search - Add new HeaderField to existing SearchType — Add a new custom HeaderField to the existing "magnifying glass" SearchType 'ItemSearch' and show a simple search response.
-
How-to: Search - Add new SearchType to existing HeaderField — Add a new custom "magnifying glass" SearchType to an existing HeaderField and show search response.
Version History
Version | Changes |
---|---|
MOB5.43 | Introduced |