Articles in this section
Category / Section

How to Initialize Bold Report Designer with an Existing Report from the Server

Published:
Updated:

You can open an existing report from the server when initializing the Bold Reports Designer by using the create API event and openReport method. This can be used as an alternative solution for the Template report. You can open the previously created report design as a template report.

Follow the below steps to open the server report using the report path on opening Report Designer:

  1. Create a function and bind it with the create API Event in the Index.html file as in the following code sample.
<bold-report-designer id="designer" create="controlInitialized"></bold-report-designer>

<script type="text/javascript">
function controlInitialized(args) {
        ...
       }
</script>

*Note: The controlInitialized() function was bound with create API.

  1. Use the openReport API method in the function along with the report path that was previously created, as in the following code sample.
    function controlInitialized(args) {
        var designer = $('#designer').data('boldReportDesigner');
        designer.openReport("/Sample Reports/Company Sales");
       }
   }

Note: In this example, “Sample Reports” is the category name and “Company Sales” is the report name that we passed in the openReport API method as part of the report path.

  1. Then, when accessing the Bold Report Designer, the report that is bound to the specified path will open.

You can find the following help documentation on how to open an existing server report in Bold Reports Designer on various platforms:

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied