Find, Find Advanced, and Find Usages
Introduction
You can search for changes or usages of different elements, documents, and XPaths in your app. You can do this with the Find, Find Advanced, and Find Usages options under the Edit menu.
Find Option
You can find various elements in your app with the Find option. For example, to find elements in the domain model, page editor, and microflow editor where the word "Employee" is used (such as pages, entities, associations, and expressions), do the following:
-
Click Edit > Find in the top bar or press Ctrl + F.
-
In the Find dialog box, leave Match case and Match the whole word unselected. This way you will search for all instances of the word "Employee" including such instances as "employee", "Employees", or "Department_Employee":
You can see search results in the Find Results pane:
Find Advanced Option
With the Find Advanced option, you can set advanced criteria and find specific elements in your app, such as all object activities or unused elements.
Finding Object Activities
You can search for microflows that have object activities in them. Do the following:
- Click Edit > Find Advanced in the top bar or press Ctrl + Shift + F.
The Find Advanced dialog box opens:
- In the Search for option, select Actions in microflows, nanoflows, and rules:
- Select the entity for which you want to search for object activities, and click Find.
You can see search results in the Find Results pane.
Finding Unused Elements
While you develop your app, specific functionality (for example, pages or microflows) might not be applicable anymore in the final version of your application. To keep your app clear and easy to maintain, clean up any unused items.
To find the unused items, do the following:
-
In the top-bar of Studio Pro, click Edit > Find Advanced or press Ctrl + Shift + F.
-
In the Find Advanced dialog box, select Unused items in the Search for option:
-
Click Find.
The results show up in the Find Results pane. To filter the results, click the Show all button in the upper-right corner of the pane.
Deleting any unused items might result in more unused items. For example, if you delete an unused page, a microflow that is only used on that page will become an unused item itself. If you are cleaning up your app, regularly refresh the unused items list.
Marking Unused Objects as Used
Some pages and microflows are only used from Java code and will be listed as an unused item because Studio Pro cannot look into Java source code. To prevent anyone from removing these objects, you can mark the page or microflow as used. Do the following:
- Open the page or microflow that needs to be marked as used.
- Open the Edit menu and select Properties.
- Change the Mark as used property from No to Yes.
Find Usages Option
The Find Usages option finds where a certain element is used, for example, all buttons that open a certain page.
To find where a certain element is used, do the following:
- Open the document that contains the element, such as the domain model.
- Select an element, such as an entity.
- Click Edit > Find usages in the top bar, or right-click the element.
- Select Find usages:
Studio Pro shows all usages of the entity in the Find Results pane.
Double-click an item in the Find Results pane to open the corresponding document.
Click Lock results in the Find Results pane to keep the current results. The next time you click Find Usages, the results display in a second Find Results pane. This allows you to keep several search results.