
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-22-2022 10:38 PM
On occasions, there will be a need to search for specific terms (read keywords, script names, property names etc.).
There could be multiple reasons for this but one common use case would be to change the name of a script and thereby arises the need to change all of its references. While Schema map is a useful utility to identify referenced and referencing fields, it is restricted only to fields.
But the approach below could help identify all referencing scripts.
a. Launch "System Applications > Studio"
b. Select any application
c. Select "Search > Code search" from menu
d. Enter the search term, check "Search in all applications" as needed and click Search
e. This will return all scripts that reference the keyword. Please see attached screenshots
f. In the example, I searched for term "sn_hr_core.impersonateCheck", which is a system property name used in HRSD application
g. As observed in search results, it has been used in 1 Script include and 5 Access controls OOB
h. Note that there is a limit to the number of items that can be displayed and this is controlled by system property "sn_devstudio.search.results.max (default value = 500)"
i. As illustrated in the screenshot below, searching for term "JSUtil", which is a common script include, brings more than 500 results and the system aborts any search beyond that number. So please use this utility considering the cap
Thanks,
Arav
- 2,564 Views