Skip to main content



      Home
Home » Archived » BIRT » Extending Expression Builder Dialog
Extending Expression Builder Dialog [message #486129] Wed, 16 September 2009 08:36 Go to next message
Eclipse UserFriend
Hello,

is it possible to add custom categories into the Expression Builder Dialog?

Thanks!
Re: Extending Expression Builder Dialog [message #486164 is a reply to message #486129] Wed, 16 September 2009 11:06 Go to previous messageGo to next message
Eclipse UserFriend
Jan,

Take a look at this post:
http://birtworld.blogspot.com/2008/09/birt-231-adding-functi ons-to-expression.html

Jason

Jan Kohnert wrote:
> Hello,
>
> is it possible to add custom categories into the Expression Builder Dialog?
>
> Thanks!
>
Re: Extending Expression Builder Dialog [message #486310 is a reply to message #486164] Thu, 17 September 2009 05:01 Go to previous messageGo to next message
Eclipse UserFriend
Jeason,

thank you for your hint! Unfortunately the example seems not to work when
using the jslib Path feature. (BIRT 2.5)
Currently I've set the location to a 'js' folder located right at the
plugins root.
Inside this folder I currently have one script file called foo.js:
var preloadstring = "this string was preloaded";
function getPL(){
return preloadstring;
}

When opening the Expression Builder Dialog I see my category, but no
function from within the js file(s).

Are there any regulations concerning js files that I've to follow?
Thanks!

Jason Weathersby wrote:

> Jan,

> Take a look at this post:
>
http://birtworld.blogspot.com/2008/09/birt-231-adding-functi ons-to-expression.html

> Jason

> Jan Kohnert wrote:
>> Hello,
>>
>> is it possible to add custom categories into the Expression Builder Dialog?
>>
>> Thanks!
>>
Re: Extending Expression Builder Dialog [message #486320 is a reply to message #486310] Thu, 17 September 2009 05:22 Go to previous messageGo to next message
Eclipse UserFriend
I've checked the "my.expression.functions" plugin, and the getPL()
function from preloadjsfile.js is not listed here as well using BIRT 2.5 :(
Bug or feature?
Re: Extending Expression Builder Dialog [message #486455 is a reply to message #486320] Thu, 17 September 2009 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Jan,

Thanks for posting this. This appears to be a bug in the
populateResources method of FunctionProviderImpl.java If your location
is jslib the url that gets created with the following:

while ( files.hasMoreElements( ) )
{
String element = files.nextElement( ).toString( );
if ( element.toLowerCase( ).endsWith( suffix ) )
{
try
{
libs.add( new URL( url, element ) );
}
catch ( MalformedURLException e1 )
{
}
}
}

Produces a url /jslib/jslib/javascriptfile.js

As a work around take the jslib directory and nest a copy inside the
same jslib dir.

Can you log a bug for this?

Jason

Jan Kohnert wrote:
> I've checked the "my.expression.functions" plugin, and the getPL()
> function from preloadjsfile.js is not listed here as well using BIRT 2.5 :(
> Bug or feature?
>
Re: Extending Expression Builder Dialog [message #486567 is a reply to message #486455] Fri, 18 September 2009 05:09 Go to previous message
Eclipse UserFriend
Done:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=289823
Previous Topic:Deploying BIRT Report Engine for a PDE plugin?
Next Topic:$100 USD Amazon gift certificate in exchange for your ideas and experiences related to BIRT!
Goto Forum:
  


Current Time: Sun Jul 13 14:57:38 EDT 2025

Powered by FUDForum. Page generated in 0.03979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top