Skip to main content



      Home
Home » Archived » BIRT » What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext?
What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext? [message #831675] Thu, 29 March 2012 03:29 Go to next message
Eclipse UserFriend
IScriptFunctionExecutor.execute takes an IScriptFunctionContext, which is basically a Map of properties. Are the properties named by constants (FUNCITON_BEAN_NAME, LOCALE, TIMEZONE) always present? Can any others be passed?
Re: What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext? [message #832333 is a reply to message #831675] Thu, 29 March 2012 23:05 Go to previous messageGo to next message
Eclipse UserFriend
Alexey

Currently these are the only ones in the code I believe.

Jason

On 3/29/2012 3:29 AM, Alexey Romanov wrote:
> IScriptFunctionExecutor.execute takes an IScriptFunctionContext, which
> is basically a Map of properties. Are the properties named by constants
> (FUNCITON_BEAN_NAME, LOCALE, TIMEZONE) always present? Can any others be
> passed?
Re: What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext? [message #1005244 is a reply to message #832333] Thu, 24 January 2013 12:55 Go to previous messageGo to next message
Eclipse UserFriend
How do I get parameters passed to the IScriptFunctionExecutor ?

I have set a Locale and a TimeZone on my Task (tried both Run & Render tasks).
And during execution I can see the IScriptFunctionExecutor only has a Locale Property, not a TimeZone.

How do I get the TimeZone property to appear ?

Ro
Re: What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext? [message #1005410 is a reply to message #1005244] Fri, 25 January 2013 05:22 Go to previous messageGo to next message
Eclipse UserFriend
I found this is a bug.
Sad

Just created: https://bugs.eclipse.org/bugs/show_bug.cgi?id=399055
Re: What properties are passed to an IScriptFunctionExecutor in IScriptFunctionContext? [message #1005501 is a reply to message #1005410] Fri, 25 January 2013 12:32 Go to previous message
Eclipse UserFriend
Ronan

I did not try it in the runtime but in the designer I get a TimeZone.
First I import
import com.ibm.icu.util.TimeZone;
I then added some local static variables to my executor class:
private IScriptFunctionExecutor executor;
private static TimeZone timeZone = null;
Then in the execute method I did this:

scriptContext = context;
if ( scriptContext != null )
{
timeZone = (TimeZone) scriptContext.findProperty( org.eclipse.birt.core.script.functionservice.IScriptFunctionContext.TIMEZONE );

}

Jason
Previous Topic:How to change style of Repeated Header
Next Topic:BIRT 3.7.1 and Java 7 support
Goto Forum:
  


Current Time: Thu Mar 20 15:11:28 EDT 2025

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

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

Back to the top