Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Nested Loop In birt
Migrateduser
Here is my code in script.
Table is getting populated with last value in the list irrespective of list size.But the print statement inside the list printing all the values in list.
if(count==0)
{
Packages.java.lang.System.out.println("row[clientName]:"+summaryData.getTotalBilledHours()+"projectName:"+summaryData.getProjectName())
row["clientName"]=summaryData.getClientName();
row["projectName"]=summaryData.getProjectName();
row["startDate"]=summaryData.getStartDate();
row["endDate"]=summaryData.getEndDate();
row["totalSOWHours"]=summaryData.getTotalSOWHours();
row["projectTotalBilledHours"]=summaryData.getTotalBilledHours();
row["projectTotalAllocatedHours"]=summaryData.getTotalAlocatedHours();
row["projectRemaainingTotalHours"]=summaryData.getRemainingAllocatedHours();
for ( i=0; i<list.size(); i++ )
{
row["resourceName"] = list.get(i).getResourceName();
row["totalAllocatedHours"] = list.get(i).getTotalAllcatedHours();
row["totalBilledHours"] = list.get(i).getTotalBilledHours();
row["unusedAllocatedHours"] = list.get(i).getUnusedAllocatedHours();
Packages.java.lang.System.out.println("i=="+i+":"+row["resourceName"]+"--"+row["totalAllocatedHours"]+"--"+row["totalBilledHours"]+"--"+row["unusedAllocatedHours"])
}
count++;
return true;
}
return false;
Thanks in Advance, if anybody helps me to get rid of issue.
Thanks,
Vartika
Find more posts tagged with
Comments
There are no comments yet