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)
Is it possible to keep set of functions for report context inside library-file?
antons
I have some useful functions defined into report context on initializiation (as global variables). How can I define them for all my rptdesign-files in one place only and not coping them into each rptdesign?
One solution is template. But it is still coping. And if I have some exceptions in defined functions, then I still have to control and change all rptdesign-files. Not good.
I thought if library could help, but I can't find how. Can anyone at least tell me if it is possible at all. And maybe some keywords to start.
Waiting for your answers, BIRT gurus!
Anton
Find more posts tagged with
Comments
johnw
Since we are launching this as of today, I recommend you take a look at our BIRT functions project. It will give you an idea how to accomplish this <a class='bbc_url' href='
http://code.google.com/p/birt-functions-lib/'>birt-functions-lib
- Project Hosting on Google Code</a><br />
<br />
With that said, you can create a functions library using the BIRT ScriptLib extension point. Then, you only need to deploy the .JAR file with your BIRT deployment and BIRT report development environment as plugins, and it will be usable in all reports. Then, your javascript functions are available in any expression or event handler in your BIRT environment.<br />
<br />
You can take a look on my Aggregations extension point article: <a class='bbc_url' href='
http://www.ibm.com/developerworks/opensource/library/os-eclipse-birtextpts/index.html'>Using
Eclipse BIRT extension points</a>. It will give you an idea how to create the library. The main difference is that instead of using the Aggregation extension point, you will use the User Script Library (IIRC) instead.