PDA

View Full Version : [HELP] Add OpenOffice Functions to Pentaho Report Designer



fernandojr.ifcg
05-21-2011, 11:15 AM
Hi,

I need to add functions like prevision into Pentaho Report Designer. Can anyone help me? =)

Fernando Felix.

Taqua
05-24-2011, 10:44 AM
I have absolutely no clue what "prevision" is nor does a Google search show anything I could understand.

However, adding formula functions is done by implementing two interfaces:

org.pentaho.reporting.libraries.formula.function.Function
for the actual function and

org.pentaho.reporting.libraries.formula.function.AbstractFunctionDescription
for the metadata of that function.

After implementing these you then have to register the functions in a file called "libformula.properties". Place a new properties file in the root package of your jar and we will pick up your new implementation during the bootup of the reporting engine.

Have a look at the sources for the "libformula" project to see some sample implementations of the functions we provide.
http://source.pentaho.org/viewvc/pentaho-reporting/libraries/libformula/trunk/