# Using the Business Components Browser

### Starting the Business Components Browser

Return to BCED to test your business components. You use the Business Components Browser (also known as the Tester) for this purpose. The Business Components Browser is a standalone application created using Oracle Business Components for Java. You will initially run the Business Components Browser in local mode, both because you have not yet enabled your application for remote deployment and it is faster develop and test your application locally first:

1. In the Navigation pane, select the Application Module for your project.

2. Select the Object | Test menu item.

3. BCED displays a message box to remind you to run make on your packages and deploy your business components. You ran make in the previous section but you have not yet enabled your application for remote deployment.

   Click OK to dismiss the message box.

4. The Business Components Browser - Connect panel displays. By default, it will be set to the appropriate options for running in local mode. Check that the following options are set:

   1. The Middle Tier Server Type should be set to Local. Your other choices are Visibroker, Oracle8i, EJB, or OAS.

   2. The JDBC Connection field should be set to the JDBC connection you defined in a previous section.

   3. The Application Type field should be set to Application Module. The alternative choice is Package.

   4. The Name field should already display your package and Application Module.

   5. Click Connect to load the Application Module and connect to the database. (If the Password Required dialog box opens, enter your password and click OK.)

5. The Business Components Browser opens.

### Using the Business Components Browser

The following figure is an example of what you would see when you run Business Components Browser:

### Menu Bar

The menu bar displays the commands available to you in the Business Components Browser:

#### File | Exit

Closes the Business Components Browser.

#### View | Data As XML

When you highlight a View Object Member in the Navigation pane, this menu item is activated. The operation fetches all the data associated with the View Object from the database and formats it as XML. You can subsequently save this formatting as an XML file.

#### Create

You can create new objects to add to your business components. You can create a default Application Module, a new View Object, and/or a new View Link. These menu items are only activated when you select an existing Application Module.

### Toolbar

The toolbar displays two Database Control icons: one to save your changes to the database, the other to rollback your changes.

### Navigation Pane

The Navigation pane displays information about the business components you are testing. It uses icons similar to the icons used in the Structure pane of BCED.

Double-click a View Object or View Link to view it in the Data Browser. You can also select a View Object or View Link and right-click to access a number of commands including Show, Remove, Find, Re-execute Query, and Properties.

### Data Browser

The Data Browser displays the contents of the currently selected View Object in the Navigation pane. When you select a View Object, the Business Components Browser executes the its query and displays the results in the right pane. You can use the Data Navigation Icons to scroll through the data, as well as to enter and edit data. You can also create queries by setting View Criteria.

| Copyright © 2000 Oracle Corporation. All Rights Reserved. |

Oracle is a registered trademark, and JDeveloper, Oracle8i, Application Server, Procedure Builder, Oracle8i Personal Edition, Oracle8i Enterprise Edition, and Oracle8i Lite are trademarks or registered trademarks of Oracle Corporation. All other company or product names mentioned are used for identification purposes only and may be trademarks of their respective owners.