We've updated this code and turned it into a Github repository to promote community contribution! See the Github announcement in the discussions section for instructions on how to do this!
https://github.com/Cireson/Community_PortalAssetSearch.git
Hardware Asset Search
Instructions:
Copy the code in custom_HardwareAssetSearch.js , and place it anywhere in your customspace folder. Alternatively, copy the file and place it into your customspace directory, and then add the following line to your custom.js file:
https://github.com/Cireson/Community_PortalAssetSearch.git
Hardware Asset Search
Instructions:
Copy the code in custom_HardwareAssetSearch.js , and place it anywhere in your customspace folder. Alternatively, copy the file and place it into your customspace directory, and then add the following line to your custom.js file:
$.getScript("/CustomSpace/custom_HardwareAssetSearch.js");
Purpose:
After this script is in place, it will add an input box within the Hardware Asset navigation node on the left, which allows a very fast dynamic search of hardware assets by Display Name.ย
Tips and tricks
1. You can use an automated process (scorch, workflow) to change the display name of all assets to include a serial number or asset tag. Then, this search will also natively search those fields too.
2. This input box does follow navigation node permissions, but it will also only appear if the user is in the AssetManager AD group, or is an SCSM admin.ย
3. This script looks for the header "Hardware Assets". If you have modified this navigation node, then you will need to adjust the script accordingly.
For the Advanced Portal Searches, please go to https://community.cireson.com/service-manager-app-customizations/post/advanced-searches-for-cireson-service-manager-portal-iw2Wru1C4GYy7ms
For the Advanced Portal Searches, please go to https://community.cireson.com/service-manager-app-customizations/post/advanced-searches-for-cireson-service-manager-portal-iw2Wru1C4GYy7ms