how to set default category for portal asset search?
Hi folks
Is there any possibility (code) to set "Work items" as default search category?
After adding the Asset Search App, the
search category is automatically being set to "Hardware Asset" which
is not very convenient for us, because we more use the workitem search.
On the "custom_InitSearch.js"-file I've seen the line:
customSearchHardwareAsset.initSearch(searchInput);
// set Hardware Asset search as default if user is hardware asset manager
Can we change it by editing this line?
Thanks and best regards
Silas
Answers
Yes, as it is the custom code which is overriding the default behaviour, you can edit the custom code to stop it defaulting to the Hardware Asset option.