Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » DataSource Property Binding (what object can I access in this expression builder ?)
DataSource Property Binding [message #547295] Fri, 16 July 2010 04:54 Go to next message
Cyril Rognon is currently offline Cyril Rognon
Messages: 24
Registered: July 2010
Junior Member
Hello all,

Birt rocks and I have been using it for a while now. These days I have been using much of xml datasources.

This has taken me to the path of dynamic xml datasources.

Now I have succeeded in handling dynamic datasources with PropertyBinding : I can set the url of the xml datasource in this simple property binding field.

The trouble is I would like to have access to the default value of the FileList property of the Datasource.

I have tried to use this.getExtensionProperty in this expression builder but it says this method doesn't exists in Object class.

Is this a bug or can I really get to the datasource itself or any object that could get me the filelist property ? Or a way to test if the property binding must not occur ?

Thanks for your help, I hope I have been clear enough.

Regards,
Cyril

[Updated on: Fri, 16 July 2010 04:54]

Report message to a moderator

Re: DataSource Property Binding [message #547377 is a reply to message #547295] Fri, 16 July 2010 09:53 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Cyril,

I normally just use the beforeOpen script, but even in the expression
builder on the property binding you could enter something like:
currxmlds =reportContext.getDesignHandle().findDataSource("Data
Source").getProperty("FILELIST")

There should be a local property for this. If you want to add an
enhancement that would be good.

Jason

On 7/16/2010 4:54 AM, Cyril Rognon wrote:
> Hello all,
>
> Birt rocks and I have been using it for a while now. These days I have
> been using much of xml datasources.
>
> This has taken me to the path of dynamic xml datasources.
>
> Now I have succeeded in handling dynamic datasources with
> PropertyBinding : I can set the url of the xml datasource in this simple
> property binding field.
>
> The trouble is I would like to have access to the default value of the
> FileList property of the Datasource.
>
> I have tried to use this.getExtensionProperty in this expression builder
> but it says this method doesn't exists in Object class.
>
> Is this a bug or can I really get to the datasource itself or any object
> that could get me the filelist property ? Or a way to test if the
> property binding must not occur ?
>
> Thanks for your help, I hope I have been clear enough.
>
> Regards,
> Cyril
Previous Topic:BirtDuration.day
Next Topic:Upgrade Birt Engine 2.3.2 to 2.6
Goto Forum:
  


Current Time: Wed Jul 30 09:22:21 EDT 2014

Powered by FUDForum. Page generated in 0.01676 seconds