I think Prompt & Secure Filter Component is one of the most important ones. It lacks, however, some support for other data types. One I missed particularly was a date picker.
This tutorial shows how to change pentaho in order to use this calendar: http://www.dynarch.com/projects/calendar/ as
the datepicker for a text box. The end result can be parametrized but is something like this:
This are the assumptions I used:I'm currently using the 1.6.2 svn version , so you may find some differences in the .xsl files. I supply the .diff files to see exactly the changes done (very few).
- It works over a string
- The Prompt Style is "Text Box"
- It displays a datepicker popup button for every parameter that starts with "date", eg: dateStart, dateValue
- Generates a fixed format string (that can be configured). On my case, it's yyyy-mm-dd
I supply a zip file with the relevant files; I use the method described here: http://wiki.pentaho.org/display/COM/HOWTO+-+My+(very+big)+pentaho+install+and+setup+tutorial but it should be straightforward to find out what goes where.
If you install this "as is" you will find it is in one of the most beautiful languages in the world, Portuguese. Don't distress, just edit solution/system/custom/xsl/ParameterFormUtil.xsl and change the line to the language you want:
.Code:<script type="text/javascript" src="/pentaho/js/lang/calendar-pt.js"></script>
Also check calendar-setup.js for further customizations. The datepicker is excellent and configurable in many ways (one can even get a date and a time, but that's outside the scope of this tutorial)
Thanks







. Don't distress, just edit solution/system/custom/xsl/ParameterFormUtil.xsl and change the line to the language you want:
Reply With Quote

