Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Setting the pattern of date column based on report parameter
ganesh1984
Hi All,
I have three columns in my sample report table. First column is of type Date Time. I want to set the pattern of this ' Date ' column based on the value of report parameter.
I have three report parameters. pattern of the 'date' column for the first report parameter should be 'dd/mm/yy' . for second parameter, it should be 'MMMM yyyy' . for third parameter, it should be 'MMM yy'.
i have two questions here:
1) can i set the pattern for the "date" columns.
2) if yes, then where i can set it.
can i do it in beforeOpen() method ?.
i am using eclipse with BIRT plugins (all in one) for generating the reports. My BIRT version is 2.3.2
please provide some sample codes.
regards,
ganesh
Find more posts tagged with
Comments
JasonW
Ganesh,
On the data element you want to change try
this.getStyle().dateTimeFormat = params["dateformat"].value;
In the onPrepare. See attached example (Look at orderdate).
Jason
ganesh1984
Hi Jason,
Thanks a lot. i got it working.
regards,
ganesh
JasonW
Glad to hear.