Hi I am creating a BIRT report inside eclipse. I want to show the report in Eclipse RCP application. I am using java pojo as scripted data source. Now In the java script of the report, when I print output to console from open and fetch method and If I switch to preview results tab after double clicking on data set. It says 500 records are shown in the results and on console it prints ,don't know ow many times. I know it is related to fetch method looping n return value, but I am not sure exact reason. here is my fetch method:
count = 0;
if(count < 3){
row["Temperature"] = outtemp;
System.out.println(outtemp);
row["Air"] = AList.get(0).getAirflow();
row["Power"] = AList.get(0).getPower();
row["Duct"] = AList.get(0).isDucted();
System.out.println(AList.get(0).getAirflow());
System.out.println(AList.get(0).getPower());
System.out.println(AList.get(0).Ducted());
row["CAirflow"] = CList.get(0).getAirflow();
row["CTemperature"] = CList.get(0).getTemp();
System.out.println(CList.get(0).getAirflow());
System.out.println(CList.get(0).getTemp());
row["Ratio"] = TList.get(0).getRatio();
System.out.println(TList.get(0).getRatio());
count++;
return true;
}
return false;