Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

IREPORT

  Asked By: Inbaraj    Date: Feb 03    Category: Java    Views: 1565
  

Hi friends i have doubt in jasper Ireprot tool.

I am using struts 2 and ireport. My problem is i want to create a report for semester wise separate column. I have confusion set a value in arraylist to print that in report.

for (int i = 0; i < markEntryTotalDet.size(); i++)
{

CertificateRequestRetrieveBean certificateRequestRetrieveBean1=new CertificateRequestRetrieveBean();
CertificateRequestRetrieveBean certificateRequestRetrieveBean2=new CertificateRequestRetrieveBean();

logger.info("------------->if"+markEntryTotalDet.get(i).getSemester().toString().equals("933"));
if(markEntryTotalDet.get(i).getSemester().toString().equals("933"))
{
registrationDet=certificateRequestRetrieveService.getStudentDetails(135420);
courseMaster=certificateRequestRetrieveService.getCourseDetails(markEntryTotalDet.get(i).getCourse_id());
try{departmentMaster=certificateRequestRetrieveService.getDepartmentDetails(markEntryTotalDet.get(i).getDept_id());
frequencyMasterDet=certificateRequestRetrieveService.getFrequencyDetails(markEntryTotalDet.get(i).getSemester());
subjectMaster=certificateRequestRetrieveService.getSubjectDetails(markEntryTotalDet.get(i).getSubject_id());
certificateRequestRetrieveBean1.setStudentid(135420);

certificateRequestRetrieveBean1.setName(registrationDet.getName());
certificateRequestRetrieveBean1.setCourse(courseMaster.getCourseDesc());
certificateRequestRetrieveBean1.setDepartment(departmentMaster.getDeptName());
certificateRequestRetrieveBean1.setAccadamicYear(frequencyMasterDet.getFreq_name());
logger.info("--AccadamicYear+----"+certificateRequestRetrieveBean1.getAccadamicYear());
certificateRequestRetrieveBean1.setCourseCode(subjectMaster.getSubId());
certificateRequestRetrieveBean1.setCourseTitle(subjectMaster.getSubName());
certificateRequestRetrieveBean1.setSubCredit(subjectMaster.getSubCredit());
certificateRequestRetrieveBean1.setGrade(markEntryTotalDet.get(i).getGrade());
certificateRequestRetrieveBean1.setAttendanceGrade(markEntryTotalDet.get(i).getAttendance_grade());
certificateRequestRetrieveBean1.setPassingDate(today);
totalCredit=totalCredit+subjectMaster.getSubCredit();
totalGradePoint=totalGradePoint+markEntryTotalDet.get(i).getGrade_point();

certificateRequestRetrieveBeans.add(certificateRequestRetrieveBean1);
}catch(Exception exception)
{
logger.info(exception);
}
}
if(markEntryTotalDet.get(i).getSemester().toString().equals("934"))
{
registrationDet=certificateRequestRetrieveService.getStudentDetails(135420);
courseMaster=certificateRequestRetrieveService.getCourseDetails(markEntryTotalDet.get(i).getCourse_id());
try{departmentMaster=certificateRequestRetrieveService.getDepartmentDetails(markEntryTotalDet.get(i).getDept_id());
frequencyMasterDet=certificateRequestRetrieveService.getFrequencyDetails(markEntryTotalDet.get(i).getSemester());
subjectMaster=certificateRequestRetrieveService.getSubjectDetails(markEntryTotalDet.get(i).getSubject_id());
certificateRequestRetrieveBean1.setStudentid(135420);
certificateRequestRetrieveBean1.setAccadamicYear(frequencyMasterDet.getFreq_name());
certificateRequestRetrieveBean1.setCourseCode(subjectMaster.getSubId());
certificateRequestRetrieveBean1.setCourseTitle(subjectMaster.getSubName());
certificateRequestRetrieveBeanaa.add(certificateRequestRetrieveBean1);
}catch(Exception exception)
{
logger.info(exception);
}
}


}
certificateRequestRetrieveList.addAll(certificateRequestRetrieveBeans);
certificateRequestRetrieveList.addAll(certificateRequestRetrieveBeanaa);







when i try this i got answer only single column. i put 2 column in report but its not separate pls help me.

Share: 



Tagged: