Call Hierarchy view

The function-call hierarchy view provides a view in tree format of the calls to and from a selected function, thus providing a clear overview of the interrelated function calls, which can grow into large, elaborately intertwined call hierarchies.

Prerequisite

The Call Hierarchy functionality is dependent on the Source Analyzer Tools. Therefore, you must initially create the Source Analyzer Data in the Update Scripts for analysis (tlanl1201m000) session and in the BSE Services (ttaad8110m000) session, select the Automatic Start check box for the Queue Service (ttaad8020m000) session to ensure that the data is automatically updated.

Starting the Calls Hierarchy view

To view the calls related to a function, select and right-click a function and on the context menu, select Call Hierarchy.

You can select a function in any of these locations:

  • In the script code opened from an open activity. The script code can belong to any component, such as a session, table, or library.
  • The Outline view.
  • A function node, at any level, within the call hierarchy of a function. If you right-click a node, the context menu shows these options:
    • Show Caller Hierarchy
    • Show Callee Hierarchy
    See the next section for a description of the Show Caller Hierarchy and Show Callee Hierarchy options.

You can also open the Call Hierarchy View on the LN Studio menu:

Window -> Show View -> Other -> Infor LN Studio Application -> Call Hierarchy.

Using the Call Hierarchy View

The Call Hierarchy View shows the function calls of the selected function in a tree structure. The selected function is the parent, that is, the top node in the tree structure.

The parent function can have calls to multiple other functions displayed as child functions in the tree structure. In turn, a child function can have multiple child and parent functions, that is, calls to and from other functions.

To operate the Call Hierarchy View, you can use these toolbar buttons:

Toolbar button Description
Show Caller Hierarchy

Shows the functions that call the selected function.

If you double-click a selected child function, the line number where the parent function call is made is opened. The file of the parent call is downloaded and opened if it was not already available in the workspace.

Show Callee Hierarchy

Shows the functions that the selected function calls.

If you double-click a selected child function, the selected function is opened. The file of the call is downloaded and opened if it was not already available in the workspace.

Show History List

Show History List is a combination of a toolbar button and a drop-down list. The drop-down list is displayed as a small black triangle.

If you click the toolbar button, a pop-up window opens showing all previously browsed functions.

If you click the drop-down list icon, the 10 most recently browsed functions are displayed.

After selecting a function from the drop-down list or the pop-up window, the call hierarchy of the selected function is displayed in the Call Hierarchy view according to the Show Caller Hierarchy or the Show Callee Hierarchy toolbar button selected previously.

History Identical to Show History List.
Clear History Removes the list of the browsed functions.
Expand 'n' level

Expands the selected function with the number of levels specified in the Preferences window, which is opened on the LN Studio menu by selecting Window -> Preferences.

The configured number of levels is also shown as tooltip of the Expand ā€˜n’ level button.

Collapse Collapses a function node.
Open Call Hierarchy Preference Page Opens the Preferences window, in which you can specify the number of nodes with which the selected function node is to be expanded. You can specify up to five nodes.

Filtering

In the text box in the upper right corner of the Call Hierarchy View, you can use these anchors to specify criteria with which you can filter the list of functions:

Anchor Description
^ The start of a line.
$ The end of a line.
. Any character.
* Zero or more characters.
| Or
\ The next character.

For example, you can use ^td.*sales to retrieve functions related to sales in the TD package.