Have you ever wondered if it's possible to recreate the Global Search feature in NetSuite for another field?
Well, you're not alone!
Many users have asked this question, and the good news is that there is a solution.
In NetSuite, the N/search module provides a search.global method that allows you to perform a search and retrieve results with columns such as name, result, info1, info2, and even the record's ID and type.
This method can be used in a client script, thanks to its promise-based nature.
Now, how you choose to display the results is entirely up to you.
Depending on your requirements, you may also consider using the field.getSelectOptions method.
This method is particularly useful when you need to perform a more focused search on a specific field.
For example, if you're scripting a transaction field with a select list that has thousands of options, this method allows you to search for a matching value using contains, is, or startswith criteria.
By combining these methods, you'll be able to create a custom solution that emulates the powerful Global Search functionality in NetSuite, tailoring it to meet your specific needs.