Step 1 Add a Trace Statement to Indicate Enter Key Was Pressed

Visual LANSA Framework

Step 1. Add a Trace Statement to Indicate Enter Key Was Pressed

In this step, you will add a trace statement to show when the Search button was clicked in the Employees filter.

1.   In the Visual LANSA editor open the Employees filter iiiCOM04.

2.   Display the Source tab.

3.   Locate the event routine handling Search button click event (#avFrameworkManager.uWAMEvent_1).

4.   Add this tracing command in the beginning of the event handling routine:

 

Invoke #AvFrameworkManager.AvRecordTrace Component(#Com_Owner) Event(' * The Search button was clicked *')

 

 

5.   Compile the filter and check it into the server.

6.   Start the Framework as a web application.

7.   In the Execute Framework as a Web Application dialog select theTurn Tracing On option and click OK:

The Framework and the Trace Details windows are displayed:

 

The Tracing information displays detailed information about the execution of your Framework.

8.   Expand the iii HR application and select the Employees business object. (Move the tracing window to the side if necessary).

9.   In the Tracing window click on the Clear button to clear the trace information.

10.   Type in a partial name in the Employee filter and click the Search button. The tracing window will now show that the Search button was clicked (scroll the trace details to locate your trace event).