How to Import an Off the Shelf Component

Previous Next

See Also

Before you can use an Off the Shelf component in an application, you must import it into the application repository.

To import an Off the Shelf component:

1. In the Definer, choose View, Objects, Off the Shelf components from the menu bar.
2. Execute a query to retrieve the component you wish to import.

The Off the Shelf Components window shows the name of the Java package that the component's class belongs to, the Java Archive file that contains the component's class definition and the component name. For example:

3. Press the Import button to import the retrieved record, followed by a Commit to save the changes to the repository.


Only commit the import if you are sure that you want the component in your repository, otherwise perform a rollback. To preview the results of an import, use "store record" instead of commit for each component that is imported.

The Off the Shelf Components window is based on a component table.

4. If the component uses constructor SQL, click the "Check" button to set the status of the SQL to valid. This has to be done each time the SQL is changed. If omitted, at runtime the construction will fail which results in error messages that report failure of a method call on the component.