Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Custom BIRT report which invokes Java code

How to design a customer BIRT report design template which can invoke some Java code when running on RTC Server?

1

0 votes



3 answers

Permanent link

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

1 vote


Permanent link
@ankur sharma

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


0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 324

Question asked: Aug 22 '13, 5:58 a.m.

Question was seen: 9,074 times

Last updated: Jul 23 '15, 7:17 a.m.

Confirmation Cancel Confirm