Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » How to force dataset fetch in javascript?
How to force dataset fetch in javascript? [message #725414] Wed, 14 September 2011 17:54 Go to next message
Jean-Baptiste Guillois is currently offline Jean-Baptiste GuilloisFriend
Messages: 33
Registered: August 2011
Member
Hello,
I need two datasets. One, ds1, contains data for an Access Control List.
The second, ds2, uses this ACL to restrict selected data.
Each dataset uses a different data source.

I plan to use javascript to customize ds2 SQL query.

How can i force in javascript ds1 to be fetched in order to customize correctly the ds2 query?

Is javascript the best solution?

Many thanks for your help,

Regards,

Jean-Baptiste
(no subject) [message #725679 is a reply to message #725414] Thu, 15 September 2011 13:49 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You can always add a hidden table that is bound to ds1 at the top of the
report to cause it to execute first. In the hidden table you can create
a javascript array in the table row oncreate and then use this in the
beforeOpen of the second dataset.

Jason

On 9/14/2011 1:54 PM, jeanbaptiste.guillois wrote:
> Hello,
> I need two datasets. One, ds1, contains data for an Access Control List.
> The second, ds2, uses this ACL to restrict selected data.
> Each dataset uses a different data source.
>
> I plan to use javascript to customize ds2 SQL query.
>
> How can i force in javascript ds1 to be fetched in order to customize
> correctly the ds2 query?
>
> Is javascript the best solution?
>
> Many thanks for your help,
>
> Regards,
>
> Jean-Baptiste
Previous Topic:connecting to kdb
Next Topic:3 - tier architecture implemetation using BIRT viewer
Goto Forum:
  


Current Time: Sat Nov 22 14:36:25 GMT 2014

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

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