Successfully!

Error!

New Template Version Management

  • Last update:  2023-09-22
  • Overview

    Version

    Report Server Version

    Functional Change

    11.0.19

    1. Added the Version Management function and comprehensively optimized its functions and interaction.

    • Supports cluster environments.

    • Added the Version Center function, allowing you to batch manage all template version information.

    • Added the Recycle Bin function, allowing you to restore historical versions of deleted templates.

    • Added the Every N Minute(s) Auto-Generate One Version function, allowing versions to be saved automatically.

    • Added the Every N Auto-Clear Once, Reserve Latest N Data function.

    • Comprehensively optimized the interactive effects of version management operations.

    2. Allows you to update and migrate historical version data from the old template version management function to the new template version management function.

    Function Description

    Added the Version Management module and comprehensively optimized its functions and interaction in FineReport V11.0.19 and later. This document introduces how to use the new template version management function.

    • Template version management: allows you to view all historical version information and perform version management operations including adding remarks, restoring, deleting/batch deleting, and previewing versions.

    • Version center: displays all template version information and allows users to view all versions of a template and delete all historical versions of multiple templates, making it easier for admins to fully grasp template changes and clean up old version data.

    • Recycle bin: includes deleted template files. Admins can view deleted template information and restore the historical versions of deleted templates or permanently deleted templates.

    The effect is shown as follows.

     Animation 1.gif

    Instruction

    New projects from V11.0.19 use the new template version management function by default.

    For projects upgraded from versions before 11.0.19 to V11.0.19 and later versions:

    • If the vcs folder or historical version information does not exist under the path %FR_HOME%\webapps\webroot\WEB-INF\assets, the new template version management function is used.

    • If the vcs folder or historical version information exists under the path %FR_HOME%\webapps\webroot\WEB-INF\assets, the old template version management function is used. You can update and migrate historical version data to the new template version management function.

    Comparison of New and Old Template Version Management Functions

    The comparison of the new and old template version management functions is shown in the following table.

    Function

    New Template Version Management

    Old Template Version Management

    Version Management

    Save Automatically Generated Version

    Every N Minute(s) Auto-Generate One Version

    X

    Every N Minutes, Reserve At Most One Version Per Template for Each User

    Not Automatically Clear Version with Remark

    Built-in and default-enabled function, without the switch.

    Every N Auto-Clear Once, Reserve Latest N Data

    Version Center

    Visible and accessible to only the super admin.

    X

    Recycle Bin

    Visible and accessible to only the super admin.

    X

    How to Update to The New Template Version Management Function

    1. Choose File > Options > Version Management in the FineReport menu bar. If you use the old template version management function, a prompt appears: Update is available for version management.

     2.png

    2. Click Update, select the historical version data migration method on the pop-up page, and click OK in the pop-up window to migrate the historical data to the new template version management, as shown in the following figure.

    iconNote:

    1. To save disk space and data migration time, it is recommended to tick Reserve Part.

    2. Migration occupies server resources, and it cannot be canceled during the migration process. It is recommended to perform migration during periods of low user activity.

    3. The migration runs in the background. Admins can perform other tasks during the migration (not being affected).

     3.png

    The settings are described as follows.

    Settings

    Description

    Reserve All

    All historical version data can be viewed, edited, deleted, and restored in the new template version management.

    • The version data migrated to the new template version management is saved under the path %FR_HOME%\webapps\webroot\WEB-INF\reportlets_versions of the local project.

    • Historical version data (can be manually deleted) is stored under the path %FR_HOME%\webapps\webroot\WEB-INF\assets\vcs of the local project.

    Reserve Part

    Only migrate the latest N versions for each template according to your setting.

    Some historical version data can be viewed, edited, deleted, and restored in the new template version management.

    • The version data migrated to the new template version management is saved under the path %FR_HOME%\webapps\webroot\WEB-INF\reportlets_versions of the local project.

    • Historical version data (can be manually deleted) is stored under the path %FR_HOME%\webapps\webroot\WEB-INF\assets\vcs of the local project.

    Discard All

    The historical version data cannot be viewed in the new template version management.

    Historical version data (can be manually deleted) is stored under the path %FR_HOME%\webapps\webroot\WEB-INF\assets\vcs of the local project.

    3. After migration, a prompt appears indicating that the data migration was successful. The new version management has been enabled. Click Enter New Version.

     4.png

    Notes

    Problem:

    During the migration, the version management update fails because of the data migration failure, with an error prompting that Data Migration Failure Cause: Disk Fault.

     5.png

    Solution:

    1. Check if the report project startup user has read and write permissions for the following folders:

    • the WEB-INF folder under the path %FR_HOME%\webapps\webroot

    • the assets folder under the path %FR_HOME%\webapps\webroot\WEB-INF

    • the reportlets_versions folder under the path %FR_HOME%\webapps\webroot\WEB-INF

    Windows users can configure folder permissions in following these steps:

    • Find the corresponding folder, right-click it, choose Properties > Security > Advanced, and click Add.

     6.png

    7.png

    • Click Select a principal, modify the basic folder permissions, and click OK.

     8.png

    2. Check the disk space and clean up unnecessary files, such as large log files and backup files in the project.

    Functions

    Choose File > Options > Version Management to go to the version management page. The initial settings are shown in the following figure.

     9.png

    Version Center

    iconNote:

    1. The Version Center function is only visible and available to the super admin.

    2. Only template information with historical versions is displayed in Version Center.

    Admins can view template version information in the version center, including the template path, last modification date, and version memory usage.

    Meanwhile, admins can search and view template versions, open templates, and delete/batch delete historical versions.

     10.png

    Viewing Version

    Click the view version icon behind a template to view all the historical version information of the template. For details about version management operations, see section "Single Template Version Management".

     11.png

    Opening a Template

    Click the open template icon behind a template.

     12.png

    Deleting Historical Version

    Click the deletion icon. A prompt window pops up: Sure to delete the historical version of GettingStarted.cpt?. Click OK to delete all historical versions of the current template.

     13.png

    Meanwhile, you can batch delete versions. Select the needed template and click the deletion icon. A prompt window pops up: Sure to delete the historical version of the selected template?. Click OK

     14.png

    Save Automatically Generated Version

    Save Automatically Generated Version is selected by default.

    1. The designer can save automatically generated versions when you select the function. You can also add comments to a template, restore and delete template versions, and preview versions.

     15.png

    2. The version management function is disabled and the version management option is grayed out if you unselect this function.

     16.png

    Every N Minute(s) Auto-Generate One Version

    This function is selected by default, with a time interval of 15 minutes.

    When you open and edit a template, a new version of the template can be automatically generated within the set time period, if this function is selected. In the next time period, the previous automatically generated version will be deleted, leaving only the latest automatically generated version.

    For example, if V20 is a newly generated version in the previous time period, in the next time period, the V20 version is deleted and only the latest automatically generated version V22 is retained.

     17.png

    Every N Minutes, Reserve At Most One Version Per Template for Each User

    This function is selected by default, with a time interval of 15 minutes.

    1. The previous version will be automatically deleted within the set time period, and only the current version will be retained, if this function is selected.

     18.png

    2. Each version will be kept, if this function is unselected.

     19.png

    Every N Auto-Clear Once, Reserve Latest N Data

    This function is selected by default and set to automatically clean every 3 months and retain data from the past 3 months.

    All template version data with modification dates outside the retention date will be automatically cleaned within the set period, if this function is selected.

     20.png

    Single Template Version Management

    Select a template, click the version management icon to go to the version management page, and view all historical version information of the template, such as the most recent modification date, user, and comments.

    Meanwhile, you can add comments and restore, delete/batch delete, and preview versions.

     21.png

    Editing Version

    Double-click the Note column behind a version to add comments for the version. Click OK after completion.

     22.png

    Restoring Version

    To restore the current template to a historical version, click the restoration icon behind the version. A prompt window pops up: Sure to restore this version?. Click OK, as shown in the following figure.

    iconNote:
    When you restore a version, a new version of the currently unsaved template will be automatically generated. There is no need to worry about accidentally losing unsaved templates.

     23.png

    Deleting Version

    To delete a version, click the deletion icon behind the version. A prompt window pops up: Sure to delete this version?. Click OK.

     24.png

    Meanwhile, you can batch delete historical versions. Select the needed versions and click the deletion icon. A prompt window pops up: Sure to delete the selected 2 version(s)?. Click OK.

     25.png

    Previewing Version

    To view the effect of a historical version, click the preview icon behind the version.

     26.png

    Recycle Bin

    iconNote:
    The Recycle Bin function is only visible and available to the super admin.

    Recycle Bin Contents

    Deleted templates will be moved to the recycle bin. The super admin can go to the recycle bin page to view information about deleted template files, including template path, size, deletion date, and modification date.

    Meanwhile, the super admin can restore and permanently delete templates in the recycle bin.

    Restoring a Template

    Select the needed templates and click the restoration icon. A prompt window pops up: Sure to restore the selected 2 file(s)?. Click OK.

     27.png

    The selected template and its historical versions are successfully restored to the original path, with a prompt The selected version is restored successfully.

    iconNote:

    1. When you delete a template, a version will be automatically generated for the template. Therefore, a new version is added in the version management after you restore the template.

    2. After successful restoration, you need to click the refresh icon in the report management panel to view the restored template under its original path.

     28.png

    Permanently Deleting a Template

    Select the needed templates and click the deletion icon. A prompt window pops up: Sure to delete the selected 2 file(s)?. Click OK.

     29.png

    Common Setting

    Choose Recycle Bin > General Settings to set the default retention time (default value as 30 days) for template files in the recycle bin.

    If the system date minus the template deletion date is greater than the number of set saved days, the template will be permanently deleted.

    30.png

    Attachment List


    Theme: 填报应用
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback