cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

execute jasper report from jsp page

RK_10805837
6-Contributor

execute jasper report from jsp page

Hi,

 

to execute jasper report from input jsp page I am using the following API-

 ReportHelper.manager.getThirdPartyReportExecuteUrl(reportRef,parameters);

 

Here, the reportRef should be of type ObjectReference and should refer to a Windchill report object. However the object that I get from the jsp page using the request.getParameter("oid") is of type WTDocument. 

 

Now, when I try to send this object in the above API , it gives the error-

java.lang.ClassCastException: class wt.doc.WTDocument cannot be cast to class com.ptc.windchill.enterprise.report.Report (wt.doc.WTDocument and com.ptc.windchill.enterprise.report.Report are in unnamed module of loader 'app')

 

Kindly suggest on how to resolve this.

Thanks,

Ramsha

1 REPLY 1

Hi @RK_10805837 

You should search for the report.

How do you define the reportRef and parameters?

The WTDocument object is not report template that can be run as a report... 

The ObjectReference should give you com.ptc.windchill.enterprise.report.Report

 

PetrH

Top Tags