|
|
|
|
|
|
|
|
|
Re: Fiscal Report BIRT [message #1060636 is a reply to message #1059638] |
Mon, 27 May 2013 08:30   |
Eclipse User |
|
|
|
Hi Sorry for delay in reply.
Now my report is generating as per my expection .
The .rptdesign and Report is atttached.
In Month column I ve written the folowing expression to show the Heading "Apr", "May", "Jun" .."Mar":
BirtDateTime.month(BirtDateTime.date(1900,dimension["Year-Month"]["Month"]+2%12,1),3)+" '"+(new String(new Date(dimension["Year-Month"]["Year"]+dimension["Year-Month"]["Month"]/10,1,1).getFullYear())).substr(2,2);
And in "fetch" in DataSet written the following scriplet:
if(count < rowobj.size()){
rowval=rowobj.get(count).getAttrVector();;
row["ecnNo"]=rowval.get(0).toString();
row["reason"] = rowval.get(1).toString();
row["plant"] = rowval.get(2).toString();
stk= new Packages.java.util.StringTokenizer(rowval.get(3).toString(),"-");
odt = new Packages.java.text.SimpleDateFormat("yyyy/MM/dd").parse(stk.nextToken().toString());
row["creationDate"] = odt;
cal = new Packages.java.util.Calendar.getInstance();
cal.setTime(row["creationDate"]);
FiscalMonth = cal.get(Packages.java.util.Calendar.MONTH)+1;
FiscalYear=cal.get(Packages.java.util.Calendar.YEAR);
if(FiscalMonth<4){
FiscalMonth+=9;
FiscalYear=FiscalYear-1;
}
else
FiscalMonth-=3;
datestr1=FiscalYear+"/"+FiscalMonth+"/01";
row["creationDate"]= new Packages.java.util.Date(datestr1);
count++;
return true;
}
return false;
If possoble please incorporate this feature in OOTB BIRT.
Thanks for your help.
|
|
|
Re: Fiscal Report BIRT [message #1060638 is a reply to message #1059638] |
Mon, 27 May 2013 08:32   |
Eclipse User |
|
|
|
Hi Sorry for delay in reply.
Now my report is generating as per my expection .
The .rptdesign and Report is atttached.
In Month column I ve written the folowing expression to show the Heading "Apr", "May", "Jun" .."Mar":
BirtDateTime.month(BirtDateTime.date(1900,dimension["Year-Month"]["Month"]+2%12,1),3)+" '"+(new String(new Date(dimension["Year-Month"]["Year"]+dimension["Year-Month"]["Month"]/10,1,1).getFullYear())).substr(2,2);
And in "fetch" in DataSet written the following scriplet:
if(count < rowobj.size()){
rowval=rowobj.get(count).getAttrVector();;
row["ecnNo"]=rowval.get(0).toString();
row["reason"] = rowval.get(1).toString();
row["plant"] = rowval.get(2).toString();
stk= new Packages.java.util.StringTokenizer(rowval.get(3).toString(),"-");
odt = new Packages.java.text.SimpleDateFormat("yyyy/MM/dd").parse(stk.nextToken().toString());
row["creationDate"] = odt;
cal = new Packages.java.util.Calendar.getInstance();
cal.setTime(row["creationDate"]);
FiscalMonth = cal.get(Packages.java.util.Calendar.MONTH)+1;
FiscalYear=cal.get(Packages.java.util.Calendar.YEAR);
if(FiscalMonth<4){
FiscalMonth+=9;
FiscalYear=FiscalYear-1;
}
else
FiscalMonth-=3;
datestr1=FiscalYear+"/"+FiscalMonth+"/01";
row["creationDate"]= new Packages.java.util.Date(datestr1);
count++;
return true;
}
return false;
If possoble please incorporate this feature in OOTB BIRT.
Thanks for your help.
|
|
|
Re: Fiscal Report BIRT [message #1061039 is a reply to message #1060638] |
Wed, 29 May 2013 11:58  |
Eclipse User |
|
|
|
You can request enhancements for BIRT in the bugzilla. If you post the report info in here, others who come across this thread with the same problem can vote for the enhancement.
|
|
|
Powered by
FUDForum. Page generated in 0.05872 seconds