Global Search
The Neptune frontend is based on the SAPUI5 HTML5 framework. All HTML tags are generated by the framework, so frontend coding is done purely in JavaScript & CSS.
It’s vital that you developers can search and find code used in any corner of the Neptune platform. In the Neptune Cockpit, you’ll find the Global Search, where you can search for JavaScript code and CSS markup.
Development -> Tools -> Global Search
Choose if the search should be performed in JavaScript or CSS code, or both. In addition to the JavaScript or CSS search term, you can narrow down the search result by "ID" and "Updated By". All searches are done using wildcard and the search is case-insensitive. carrid will return the same search result as CARRID.
![global search view](_images/global-search-view.png)
Search locations
Searching for JavaScript is performed in applications, launchpads, mobile clients, and enhancements.
Neptune Applications
Script code blocks (JavaScript):
![global search script code](_images/global-search-script-code.png)
Event multi line code blocks (JavaScript):
![global search multi line code](_images/global-search-multi-line-code.png)
Event single line code (JavaScript):
![global search event single line](_images/global-search-event-single-line.png)
Expression binding (JavaScript):
![global search expression binding](_images/global-search-expression-binding.png)
Header (JavaScript & CSS):
![global search header](_images/global-search-header.png)
Embedded HTML (JavaScript & CSS):
![global search embeded HTML](_images/global-search-embeded-HTML.png)
Stylesheet (CSS):
![global search CSS](_images/global-search-CSS.png)
StyleClass attribute (CSS):
![global search styleclass](_images/global-search-styleclass.png)
Perform search
Enter your search terms and press the "ENTER" key or click the "Run" button. All searches are done using wildcards: CARRID ⇒ CARRID. Spaces are also treated as wildcards: carrid getvalue ⇒ carrid*getvalue
![global search perform search](_images/global-search-perform-search.png)
Expand the search result you want to inspect further, click on the code button to open the code view:
![global search code view](_images/global-search-code-view.png)
You can choose to open the code window to the right or at the bottom:
![global search code window](_images/global-search-code-window.png)
You can choose which fields you want to show in the search result, the setting will be saved in SAP and restored the next time you open Global Search:
![global search result](_images/global-search-result.png)