Finding References to Application Packages and Classes
You can use the Find Definition References menu item to quickly find references to application packages or classes.
To be able to search for references to application packages or classes, you must compile all PeopleCode for the database first:
Note: This compilation process is a one-time activity per database, which takes many hours to complete and depending on the size of your database.
Sign into Application Designer in two-tier mode.
In Application Designer, select
In the Compile All PeopleCode dialog box, select the Compile all and Save all PeopleCode option.
Click the Compile button.
After this initial PeopleCode compilation, new application package and class definitions and references are automatically added to the database.
Important! When importing a project that contains application package and application class definitions, you must select the Compile PeopleCode after Import option to add these definitions to the database.
After you have compiled and saved all PeopleCode, you can search for references to application packages or application classes or application class methods:
In Application Designer, open the application package in the Application Package Editor.
In the application package structure, browse to the application package or application class or application class method for which you want to find definition references.
Select Edit, Find Definition References, or right-click the definition and select Find Definition References from the pop-up menu.
Note: When you want to find definition references for record definition or field definition, the Find Definition References dialog box displays a set of options for filtering the definition types.
For more information on search filters for record and field definitions, see Finding Definition References.
After you select this item, a search of the database takes place, and the results appear on the Find Definition References tab of the output window.
Select any definition that is displayed in the Find Definition References tab by double-clicking it.
The selected definition opens in the editor.
Note: Find definition references will not find an application package or class name when it appears in a PeopleCode comment or when the name appears in a string literal (that is, within quotes). Use the Find In feature instead.