Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Re: Setting Persistent Global Variable from DataSet
Re: Setting Persistent Global Variable from DataSet [message #874874] Mon, 21 May 2012 17:45 Go to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Reference the value using dataSetRow syntax. Take a look at the
attached example.

Jason

On 5/19/2012 4:35 AM, TO C wrote:
> I'm trying to set a Persistent Global Variable from the column of a
> dataset.
> I've tried using OnFetch as below:
>
> var myvar = this.getDataRowData().getColumnValue("Variable");
> reportContext.setPersistentGlbalVariable("VariableData", myvar.toString());
>
> This isn't working though.
>
> I want a Persistent Global Variable set to the Value of the column
> Variable (it'll be the same across the dataset).
>
> Any ideas?
Re: Setting Persistent Global Variable from DataSet [message #895142 is a reply to message #874874] Wed, 11 July 2012 19:32 Go to previous messageGo to next message
Eleanor Dilay is currently offline Eleanor DilayFriend
Messages: 2
Registered: July 2012
Junior Member
Thanks for this example. Can you show me how to set a Persistent Global Variable from an aggregate of a dataset.
Re: Setting Persistent Global Variable from DataSet [message #895160 is a reply to message #895142] Wed, 11 July 2012 20:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

See attached example


On 7/11/12 3:32 PM, Eleanor Dilay wrote:
> Thanks for this example. Can you show me how to set a Persistent Global
> Variable from an aggregate of a dataset.
>
Re: Setting Persistent Global Variable from DataSet [message #895161 is a reply to message #895142] Wed, 11 July 2012 20:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

See attached example


On 7/11/12 3:32 PM, Eleanor Dilay wrote:
> Thanks for this example. Can you show me how to set a Persistent Global
> Variable from an aggregate of a dataset.
>
Re: Setting Persistent Global Variable from DataSet [message #895162 is a reply to message #895142] Wed, 11 July 2012 20:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

See attached example


On 7/11/12 3:32 PM, Eleanor Dilay wrote:
> Thanks for this example. Can you show me how to set a Persistent Global
> Variable from an aggregate of a dataset.
>
Re: Setting Persistent Global Variable from DataSet [message #895164 is a reply to message #895142] Wed, 11 July 2012 20:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

See attached example


On 7/11/12 3:32 PM, Eleanor Dilay wrote:
> Thanks for this example. Can you show me how to set a Persistent Global
> Variable from an aggregate of a dataset.
>
Re: Setting Persistent Global Variable from DataSet [message #895557 is a reply to message #895164] Fri, 13 July 2012 14:17 Go to previous message
Eleanor Dilay is currently offline Eleanor DilayFriend
Messages: 2
Registered: July 2012
Junior Member
Thanks for your help Jason.
I am getting the aggregates into the main report. But I'm getting the totals from the previous work order each time, not the current work order.

[Updated on: Fri, 13 July 2012 16:06]

Report message to a moderator

Previous Topic:How to get chart legend value as an input in parameter of target report
Next Topic:Stored Procedure
Goto Forum:
  


Current Time: Tue Apr 23 17:34:59 GMT 2024

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

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

Back to the top