Showing posts with label Jaspersoft. Show all posts
Showing posts with label Jaspersoft. Show all posts

Wednesday, November 23, 2016

Best Practices for Developing Jaspersoft Studio Reports

Use Jaspersoft Studio to build and manage your own custom reports in Advanced Reporting. As a prerequisite, set up the CA JDBC Adapter to connect to the CA PPM transactional or Data Warehouse schemas without a VPN connection.The adapter lets you run and test report queries faster and more efficiently.
The following guidelines for developing reports using Jaspersoft Studio represent the most efficient course of action. We highly recommend that you follow these best practices.

Start the Report

  • Install and use the Jaspersoft Studio version that corresponds to the CA PPM version that you have in your environment. Avoid installing more than one version of Jaspersoft Studio on the same computer.
  • Try to use existing out of the box (OOTB) reports as examples when you start developing your custom reports. The PMO Accelerator Advanced Reporting content includes more than 50 reports that you can use as a starting point.
  • Do not modify the reports under the CA PPM folder. Make a copy of the OOTB report and modify the copy.
  • Organize the folder structure for your custom content similar to the CA PPM folder organization, taking into consideration how you want to manage security. You can allow access at the folder level or at the report level.
  • Create your reports outside the CA PPM folder, not under it. Create a folder under the organization for your own reporting content or use the Shared folder when the reports are available to all users.
  • Provide an ID that identifies the report as your custom report when you create a new report. For example, start with your company name or abbreviation. 
  • When copying and modifying an OOTB report, use the same procedure that you use to create a report. Provide a new ID and use the JRXML file of the OOTB report to upload the copy. 
  • Follow the rules that are required by Jaspersoft, avoiding spaces and special characters when you create the JRXML file name that you use to upload the report. We recommend CamelCase Notation.

Design the Report

  • Limit the number of input controls that you include in your report. Only include input controls that are relevant for the report. 
  • Always try to categorize the data when you have input controls with high cardinality (values that are uncommon or unique, such as resources or investments). Use cascading input controls when possible.
  • Create resources in the repository, such as input controls and images, so that you can use them for more than one report. Take advantage of the resources that are already created and avoid redundancy. For example, input controls that are used by one report should be created outside the report unit so that you can use them in other reports that you create later.
  • Create a report template that contains headers, styles, company logos, page footer, and other definitions before starting a project. Report templates save time and effort and help reports have a consistent look and feel.  
  • Keep a backup copy of the JRXML files that you create or modify. Store these copies in a source control tool or any other system or collaboration tool that you use to control source code.

Develop the Report

  • We do not recommend that you develop reports in Jaspersoft Studio using domains as data sources. This practice can have a severe impact on performance. SQL is the preferred language for developing reports in Jaspersoft Studio.
  • Limit the number of subdatasets (subqueries) in your report. The recommended limit is 10 subdatasets. 
  • Limit the number of subreports that are called by the main report. The recommended limit is 10 subreports.
  • Use the "Print When Expression" option, when possible, to avoid unnecessary calls to subreports and subqueries.
  • Use frames to group elements, especially when you have several fields in the report layout. Avoid hiding elements using rectangles or other elements. Frames can be invisible and they keep fields aligned when exporting to Microsoft Word and to other export options.
  • Always use the "Text Field" element, even if you are defining static text. The "Text Field" element gives you more flexibility and allows for internationalization. 
  • Always define the "Pattern" property for the "Text Field" element when it returns values of type other than text and date.
  • Avoid overlapping fields (for example, making the width of an element extend over the next element). Fields that are overlapping do not display when the report is exported.
  • Create your own images or use the images included in the PMO Accelerator Advanced Reporting content. Use the "repo://" syntax to reference the image inside the report.
    Example: repo:/ca_ppm/resources/images/stoplightRed
  • When working with images, we recommend that you use one image element associated to an IF-THEN-ELSE expression to display different images instead of having several image elements.
  • Use Groovy as the language for the report. In Jaspersoft Studio, select the report name at the top of the hierarchy in the Outline view and change it on the Properties, Report tab. When you use Groovy, you can use built-in functions and simpler expressions. You can still use Java in your expressions, if necessary.
  • Use the following OOTB built-in parameters in your report queries. These parameters are passed through the integration between CA PPM and the JasperReports Server.
    • ppmUserUITheme. The UI Theme selected as default in CA PPM.
    • ppmUser. The user name of the user who is logged in to CA PPM.
    • ppmUserLanguage. The user language of the user who is logged in to CA PPM.
    • ppmDBName. The database name that is used for Microsoft SQL Server.
    • ppmDBSchema. The CA PPM database schema. 
    • ppmDBVendor. The CA PPM database vendor (oracle, mssql).
    • dwhDBSchema. The Data Warehouse database schema.
    • dwhDBVendor. The Data Warehouse database vendor.
    • dwhDBLink. The CA PPM Database Link as defined in CSA.

Publish the Report

  • You do not need to publish a report every time that you edit it. After you have the report unit created, you can upload the JRXML file from Jaspersoft Studio instead of publishing the report.
  • Avoid publishing reports with subreports from Jaspersoft Studio. When you modify reports that include subreports, download the reports to your local server and upload the updated JRXML file. Follow this procedure for the main report and subreports.
    You can also upload a local JRXML file from the Set Up the Report page when you edit the report in Advanced Reporting. However, the report server does not validate the JRXML file when you upload it.  Use Jaspersoft Studio to validate the JRXML before uploading it.  
  • Compile the report in Jaspersoft Studio to validate it before uploading. Click the Compile Report icon that is located in the upper right corner of the Design area. The following image shows the Compile Report icon.
This image shows the Compile Report icon.
  • When you are publishing a report, the Select Resources to publish window displays. Select Ignore from the drop-down instead of Overwrite for all resources included on this window that exist in the repository.

Wednesday, July 20, 2016

What you need to know about Jaspersoft


  • Easy to get started
  • Comes with Analytical Engine
  • Most sort out functionalities like Email Report
  • Locating Data is simplified
  • Ability to Publish Jasper report as portlet.
  • Comes with its own security and auditing services.

What is Jaspersoft?


  • First ever tightly integrated advanced reporting solution with CA PPM
  • Available from Clarity 14.2
  • Offers true self service  and adhoc reporting 
  • Utilizes data warehouse
  • Offers mobile reporting. 
  • Offers Web and Rest service to perform major option from client tool.
  • Platform independent.
  • Its java based system 
  • You can fully customize the solution 
  • It has forward compatibility 
  • Clarity 14.3 using latest version of Jaspersoft 6.1

Tuesday, July 19, 2016

Rest Service Using Jaspersoft

The below are the sample Rest service and configuration in Dev environment.
Right now I have stopped looking at the solution on web service because, in the future road map of Jaspersoft Web service (soap) will be removed only supported Rest service.

You can also try below link directly and you can see the output. Ping me if in case asked any credentials and hope not.


you can also access organization specific.

Rest Service Using Jaspersoft

The below are the sample Rest service and configuration in Dev environment.
Right now I have stopped looking at the solution on web service because, in the future road map of Jaspersoft Web service (soap) will be removed only supported Rest service.

You can also try below link directly and you can see the output. Ping me if in case asked any credentials and hope not.


you can also access organization specific.

Thursday, June 16, 2016

Scheduling and Saving the filter in Jaspersoft report not working.

Issue : Scheduling and Saving the filter in Jaspersoft report not working.
We have done following in development and verified.
·         We have read only access now in acceptance to all the folder, instead we will provide Read & Write only for all the existing role to the folder level only. So that filter saving option and scheduling will work.
·         For the report source file, make it read only. So that no user will not edit the report.

nNote: In jaspersoft, you must assign the rights to parent folder as well. because it follows top down approach.

Folder -->A-->B-->C, if I assign read only for Resource manager role to C. it's still need to provide B and A as well in order see.
In my if assign c, automatically need to see B and A.










Sunday, June 12, 2016

Do you have any option to automate assigning the resources to respective roles in Jaspersoft

Currently the access rights in PPM and translated to equivalent Jaspersoft user upon runnning the "Create and Update Japsersoft User Job". The job can be run manually or can be scheduled.  For Jaspersoft users who you create manually for studio usage purpose, you would have to assign the Japsersoft roles manually. There appears to be no other automated approach to this in the pipeline from CA.

Connect DWH data source rather than Niku DB for Jaspersoft report

Reporting directly from PPM DB has it pros and cons. Pros are in terms of getting real time data. And CONS if you run heavy reporting, then it is ideal run reports during peak hours only, since otherwise you will hit your Clarity database performance and it might slow down the regular PPM usability.

Hence using a separate DWH database can also be a big plus, as you get your data without slowing down your system.

When it comes to Jaspersoft : most reports use DWH database, which means they will retrieve the data that is in DWH, updated by the Load DWH job. You can run the job as often as you need to have the data updated: most of the reports return data that may be updated Daily with no impact on being real-time. And DWH DB is exclusive for reporting purposes.


If you need to get an actual real-time data from Clarity, with Jaspersoft, I would recommend you use real time Ad Hoc Views and Reports that provide that feature.


Reference:
 
b.            If we use Niku DB what we will miss in Jasper soft by comparing traditional Jasper soft report.
{CA Support}: The answer was basically provided above. Jaspersoft reports can be sourced from PPM and DWH datasources. The future plans are to completetly move the default reports to DWH. You may refer to Advanced reporting product guide for explanations on the default reports.

Reference:

You may review the pros and cons mentioned in 1A. Jaspersoft is the currently supported PPM reporting content, and it is getting a lot of liking from the larger PPM user community. So the sooner we adapt the better it is.

In summary, Jaspersoft is smaller and generally smarter: it requires less resources than Business Objects. What would be best for you will depend on what features you are going to be using.
If you have the bandwidth, you can also install both and see which one would be more convenient for your business. If not anything else, it can definitely help you with your decision, based on your exact situation.

Using Jasper Soft we will get the capability to run the reports in different ways. i.e. via the CA PPM BEAN Datasource and CA PPM DWH Bean Datasource. If your reporting needs are not strict to show real time data, then you can source your data of the CA PPM DWH BEAN Datasource. And for real time data you may use the CA PPM Bean Datasource. The default reports or in other words are based on these datasources. You may create custom domains combining the tables of your choice.