BackPrevious Page Next PageNext

New User Defined Data Source

This dialog appears when you right-click a data source node and select New User Defined Data Source from its shortcut menu in the Catalog Manager. It is used to add user data source objects into a JReport catalog.

New User Defined Data Source dialog

The following are details about options in the dialog:

Name

Specifies the name of the UDS. The name cannot be the same as any of the existing procedures, SQL files, HDSs, business views or queries. It also cannot be empty.

Class Name

Specifies the full name (including package name) of the class represented by the UDS. The jar file containing the class should be appended to the ADDCLASSPATH variable in the setenv.bat/setenv.sh file in the <install_root>/bin folder in both JReport Designer and JReport Server.

The class implements

After filling in the Class Name field, the classname of the interface that the class implements will be displayed here. If the class does not implement jet.datasource.JRUserDataSource you will receive an error message.

Parameter

Specifies the parameter for the UDS. The PARAMETER string must match the format defined in the UDS class. You can reference parameters and constant level formulas predefined in the current catalog data source and the special field User Name in the string. By default the UDS will use the same database as the jdbc connection information used in the current data source. If your UDS includes the database information such as URL and Driver you can use the parameter to override the default data source.

Edit Format

Opens the Edit Format dialog to specify the value formats of the referenced parameters and formulas.

Specify Columns

Specifies the column definitions. If you don't specify the column definitions, JReport will retrieve them from result set. When you click OK to add the UDS, JReport will run the UDS with the default parameters and use the returned data to determine the datatypes of the columns. If you are using formulas to provide the parameters you need to put temporary values into the formulas since JReport will not prompt you for the parameters when you add the UDS.

Add button

Adds a default row in the column definitions. If there is no row selected, an empty row will be added to the last line.

Delete button

Removes the selected row.

Move Up button

Moves the selected column one step up.

Move Down button

Moves the selected column one step down.

OK

Adds the UDS and closes the dialog. If there is any error the UDS will not be added and it will return to this dialog.

Cancel

Does not retain any changes and closes the dialog.

Help

Displays the help document about this feature.

BackPrevious Page Next PageNext