Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Extending Expression Builder Dialog
Extending Expression Builder Dialog [message #486129] Wed, 16 September 2009 12:36 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
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 15:06 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 09:01 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
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 09:22 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
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 17:06 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 09:09 Go to previous message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
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: Sat Apr 27 03:22:36 GMT 2024

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

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

Back to the top