Custom BIRT report which invokes Java code
3 answers
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
-
Create fragment project to plug-in com.
ibm. team .rep orts .ser vice .bir t - Create a feature and then a site project to generate an update site
- Deploy the update site to the RTC server
- Create a BIRT report template that invokes our code from the fragment project
- 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
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}.
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.
row["WI_TYPES_FROM_JAVA"] = data[index];
index++;
return true;
}
return false;" sind Fehler aufgetreten:
{1}.