It's all about the answers!

Ask a question

Custom BIRT report which invokes Java code


0
1
ankur sharma (66212128) | asked Aug 22 '13, 5:58 a.m.
JAZZ DEVELOPER
How to design a customer BIRT report design template which can invoke some Java code when running on RTC Server?

3 answers



permanent link
ankur sharma (66212128) | answered Aug 22 '13, 5:59 a.m.
JAZZ DEVELOPER

BIRT supports reports to execute Java or JavaScript codes. This post explores how Java code can be invoked by by RTC reports.

To achieve this we need will

  1. Create fragment project to plug-in com. ibm. team .rep orts .ser vice .bir t
  2. Create a feature and then a site project to generate an update site
  3. Deploy the update site to the RTC server
  4. Create a BIRT report template that invokes our code from the fragment project
  5. Deploy and run the report on RTC Server

This blog post discusses it in detail https://www.ibm.com/developerworks/community/blogs/JazzyTunes/entry/creating_birt_reports_for_rtc_which_invokes_java_code?lang=en

permanent link
vijayakumar ramesh (105645) | answered Jul 23 '15, 7:12 a.m.
@ankur sharma

I  followed what is shown in the link but I am getting error like below



permanent link
vijayakumar ramesh (105645) | answered Jul 23 '15, 7:17 a.m.
Die folgenden Elemente enthalten Fehler:

ReportDesign (ID = 1):
+ Bei der Auswertung des Scripts "importPackage( Packages.com.ibm.test.report.javapackage);
index = 0;
var myJavaObj = new Packages.com.ibm.test.report.javapackage.SpecialLogicWorkItemTypes();
data = myJavaObj.getWITypes();" sind Fehler aufgetreten: 
{1}.
+ Bei der Auswertung des Scripts "if(index < data.length){
    row["WI_TYPES_FROM_JAVA"] = data[index];
    index++;
    return true;
}
return false;" sind Fehler aufgetreten: 
{1}.
+ Data Set script method "Fetch" returned null; expected a Boolean value.

Your answer


Register or to post your answer.