kapokfly Posted December 20, 2009 Share Posted December 20, 2009 Does anyone know how to display different default report for the multiple jasper server instances deployed to liferay portal? My requirement:1) 1 liferay portal installation2) 1 jasperserver installation out of liferay portal3) integrated jasperserver and liferay via the war provided by jasper and display report list without issue4) Added 4 jasper server portlets from the portal but all of them are displaying the report list is there anyway we can make it displaying different report, by default? thanks! Link to comment Share on other sites More sharing options...
swood Posted December 20, 2009 Share Posted December 20, 2009 Can you define a portlet that uses a URL that you see for an individual report in the report list? ShermanJaspersoft Link to comment Share on other sites More sharing options...
kapokfly Posted December 21, 2009 Author Share Posted December 21, 2009 not sure I understood your meaning? You mean adopting a iframe portlet and include the report url? Link to comment Share on other sites More sharing options...
swood Posted December 21, 2009 Share Posted December 21, 2009 I found out that you can do this through the portlet configuration. Here is a section of the new admin guide. By default, the portlet displays all the reports that the current user is allowed to view. You can configure the portlet to displaya specific report, instead.In the portlet.xml file, add the following entries to specify a default report: full_resource_path: This parameter specifies the full report Path. resource_type: The only supported value is report number_of_parameters: This specifies the number of parameters the report requires, including optional and required parameters. js_resource_parameter_<parameter>: For each parameter of the report, append prefix js_resource_parameter_ to the name. In this example, the report /reports/samples/EmployeeAccounts takes a parameter named EmployeeID; it is defined as js_resource_parameter_EmployeeID. modifiable: This value has to be 1 [one] so end users can choose different reports at run time. 1 is the only supported value. For details of this parameter, please refer to the JSR-168 specification.For example, the portlet configuration section of the portlet.xml file might be similar to the XML seen below. ShermanJaspersoftCode:<portlet-preferences> <preference> <name>full_resource_path</name> <value>/reports/samples/EmployeeAccounts</value> <modifiable>1</modifiable> </preference> <preference> <name>resource_type</name> <value>report</value> <modifiable>1</modifiable> </preference> <preference> <name>number_of_parameters</name> <value>1</value> <modifiable>1</modifiable> </preference> <preference> <name>js_resource_parameter_EmployeeID</name> <value>beth_id</value> <modifiable>1</modifiable> </preference><portlet-preferences> Link to comment Share on other sites More sharing options...
kapokfly Posted December 22, 2009 Author Share Posted December 22, 2009 Thanks but I have 4 jasperserver portlet instances, and each of them needs one default report which is different from the others. Link to comment Share on other sites More sharing options...
swood Posted December 31, 2009 Share Posted December 31, 2009 Can you create separate portlet instances for each default report you want to show? Then you can include them in a portlet page. ShermanJaspersoft Link to comment Share on other sites More sharing options...
suedonne123 Posted January 1, 2010 Share Posted January 1, 2010 I was able to do this for liferay running under Glassfish app server but I had to add "instanceable" tag to the liferay-portlet.xml file for each...See code below... Code: Post Edited by suedonne123 at 01/01/2010 18:15 Link to comment Share on other sites More sharing options...
rhjheins Posted October 22, 2010 Share Posted October 22, 2010 I have the same problem. want to have 10+ reports shown on a singel liferay page. Any working solutions yet kapokfly? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now