## Publish to JReport Server dialog

This dialog appears when you click File > Publish and Download > Publish to Server > Publish Report to Server/Publish Component to Server on the menu bar, specify the information in the Connect to JReport Server dialog and then click Connect. It helps you to publish resources from JReport Designer to JReport Server. See the dialog.

The following are details about options in the dialog:

Publish Resource From

Specifies the directory in which the resources you want to publish are located. By default, the path of the currently opened catalog is shown here. You can click the Browse button to find another directory.

Select All

Specifies to publish all the resources in the specified directory.

Resource tree box

Lists all the resources in the specified directory in a tree structure. Check the checkboxes ahead of the resources you want to publish.

Publish Resource To

Specifies the file path on the server to which the resources will be published. You can click the Browse button to select the path in the Select Folder dialog.

More/Less Options

Shows/hides resource options. Select a to-be-published resource in the resource tree box and set its properties in the following tabs:

- Properties tab
  Specifies properties for the selected resource.
  - Resource Node Name
    Specifies the name of the selected resource. This name is required and is used as the display name of the resource in the server resource tree. The Browse button is used to display all the same type resource names under the Publish Resource To path. Select one of them as the name of the selected resource.
  - Resource Description
    Specifies the description for the selected resource.
  - Status (available only when a report is selected)
    Specifies the status of the selected report. If not specified, the status will be Active by default.
    - Active
      The report can be run, advanced run and scheduled on JReport Server.
    - Inactive
      The report cannot be run, advanced run or scheduled on JReport Server.
    - Incomplete
      The report is not completely designed and cannot be run, advanced run or scheduled on JReport Server.
  - Resource Real Path (available only when a folder is selected)
    Specifies the real path of the folder.
  - Enable Resources from Real Paths (available only when a folder is selected)
    Specifies whether or not to enable getting resources from the folder's real path. Once enabled, the real path resources will be mapped into the resource node of the folder in the server resource tree and the server will always be able to get the resources and updates from the real path.

    Note: This option can only be checked when the Enable Resources from Real Paths option on the JReport Server Administration page > Configuration > Advanced panel has also been checked.

  - Custom Field
    Specifies custom field values for the selected resource if there are custom fields enabled on JReport Server. A custom field can be regarded as a resource property.
    - Name
      Displays name of the custom fields.
    - Value
      Specifies value of the custom fields.
  - Apply Archive Policy
    Specifies whether to apply an archive policy to the selected resource.
    - Archive as New Version
      Specifies whether to use multiple versions for the selected resource.
      - Max Number of Versions
        Specifies the maximum number of versions that will be listed in the version table of the selected resource. The default value is 0, which means that the version amount is unlimited.
    - Replace Old Version
      Specifies whether to replace the old version when the new version is generated.
- Permissions tab (disabled when publishing resources to the My Reports or My Components folder)
  Specifies user permissions to the selected resource.
  - Enable user permission
    Specifies whether to apply user permissions to the selected resource.
  - Role/User/Group
    The tabs list JReport Server roles, users, and groups. You can apply permissions to them by selecting a role/user/group and then checking the checkboxes before the required permissions. For unwanted roles/users/groups, you can remove them by selecting one of them and then clicking the Remove button.
  - Permissions
    Sets permissions to the selected role/user/group by checking the checkboxes before the required permissions.

    Permissions in JReport Server include:

    Permission | Description
    --- | ---
    Visible | Allows or denies viewing object names in the resource tree or version table, such as folders, resources, and archive versions.
    Read | Allows or denies viewing object properties, versions, and, if it is a folder, folder content.
    Write | Allows or denies publishing folders and resources, changing the properties (not including permission settings) of the objects in the resource tree or version table, such as folders, resources, and archive versions, and modifying version table settings.
    Delete | Allows or denies deleting objects in the resource tree or version table, such as folders, resources, and archive versions.
    Execute | Allows or denies running resources in normal and advanced mode (report type resources only).
    Schedule | Allows or denies submitting resources to schedules (report type resources only).
    Grant | Allows or denies granting permissions to other users or roles.
    Update Status | Allows or denies updating report status, and if it is a folder, the status of reports in the folder.

  - Add
    Adds roles/users/groups and assigns permissions to them.
  - Remove
    Removes the selected role/user/group from the Role/User/Group tab. The removed roles/users/groups are still available for the case when you want to add them back.
- Connection tab (only for catalog)
  Specifies properties of the data source connection.
  - Catalog Data Source
    Specifies the data source in the catalog.
  - Modify
    If the selected data source is built on a JDBC connection, the Modify button is activated. You can click it to modify properties of the data source connection in the Get JDBC Connection Information dialog.
  - Name
    Lists the name of the connection properties.
  - Property
    Lists the value of the properties.

OK

Applies the changes and publishes the resources to JReport Server.

Cancel

Closes the dialog, leaving any changes unsaved.

Help

Displays the help document about this feature.

###### Related topics:

- Publishing resources remotely