BackPrevious Page Next PageNext

Working with Custom Fields

Creating and enabling custom fields

Editing custom fields

Deleting custom fields

Setting value to custom fields

Hiding custom fields

Custom fields are user defined fields which can be used as resource properties, the same as Type, Description, Last Modified, and so on.

After a custom field is created and enabled by administrators, it will be available in the resource information table on both the JReport Administration > Resources page and the JReport Console > Resources page. End users can define its value by setting properties.

Creating and enabling custom fields

To create a custom field:

  1. On the JReport Administration page, click Configuration on the system toolbar, then select Custom Fields from the drop-down menu. The Configuration - Custom Fields page is displayed.

    Configuration - Custom Fields page

  2. Click New Custom Field.
  3. In the New Custom Field dialog, provide a name and description for the custom field.

    New Custom Field dialog

  4. To enable the custom field, check the Enabled option.
  5. Click OK to create the custom field.

    The new custom field is then added in the custom field table which consists of the following columns.

    Column Name Description
    Custom Field Name Displays the names of the custom fields.
    Description Displays the information about the custom fields.
    Enabled Shows whether the custom fields are enabled or not.

All columns in the table are sortable. To sort the table by certain column, click on the column name.

Editing custom fields

  1. In the custom field table, select the row where the custom field is in, then click Properties.
  2. In the displayed dialog, modify the name and description for the custom field, and change its status if required.
  3. Click OK to accept the changes.

Deleting custom fields

Administrators can delete the custom fields that are not required at any time. To do this:

  1. In the custom field table, select the row where the custom field is. You can select multiple custom fields.
  2. Click Delete.
  3. Click OK in the warning message to confirm the deletion.

Setting value to custom fields

When you publish resources to JReport Server, either locally/remotely or from JReport Designer, if there are custom fields enabled, they will be displayed in the publishing dialog and you can specify the value of the custom fields for each resource according to your requirements. Also, the custom field values can be defined by setting resource properties.

Hiding custom fields

By default, all the enabled custom fields will be displayed in the resource information table on both the JReport Administration > Resources panel page the JReport Console > Resources page. If you want to hide a custom field from being shown in this table, follow the steps below:

For administrators:

  1. Click Profile on the system toolbar of the JReport Administration page, then select Customize Server Preferences from the drop-down menu.
  2. In the General tab, unselect the checkbox in front of the corresponding custom field in the Columns Shown in Resources List section.
  3. Click OK to accept the setting.

For end users:

End users can hide a custom field on the JReport Console > Profile page as shown in the above method, and besides have a second choice:

  1. On the JReport Console > Resources page, click Tools > Preferences on the task bar.
  2. In the General tab of the Preferences dialog, unselect the checkbox in front of the corresponding custom field, then click OK.

BackPrevious Page Next PageNext