BackPrevious Page Next PageNext

Edit User Defined Data Source

This dialog appears when you right-click a user data source and select Edit User Defined Data Source from the shortcut menu in the Catalog Manager. It helps you to edit a UDS that you have added to a catalog.

Edit 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 class name of the interface that the class implements will be displayed here.

Parameter

Specifies the parameter string for the UDS. The parameter string must match the format defined in the UDS class. You can use parameters predefined in a JReport catalog in the parameter string, and the format used in the string is "@" + parameter name. For example, if the parameter string of a UDS is SQL=select * from employee, and you want to use the parameter sql in a catalog to replace the part after "=" in the string, then the parameter string of the UDS will be SQL=@sql.

Edit Format

Opens the Edit Parameter Format dialog to edit the parameter format:

Specify Columns

Specifies the column definitions. If you don't specify the column definitions, JReport will retrieve them from result set.

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.

Remove 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 into a JReport catalog.

Cancel

Does not retain any changes and closes this dialog.

Help

Displays the help document about this feature.

BackPrevious Page Next PageNext