Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamically sort a crosstable at render time(Is there a way to apply dynamic sorting on a crosstable without generating a new rptdocument?)
Dynamically sort a crosstable at render time [message #753970] Mon, 31 October 2011 05:57 Go to next message
donino donino is currently offline donino donino
Messages: 162
Registered: July 2011
Senior Member
Hi,

I found nice examples of reports that apply dynamic cross-table sorts in the beforeFactory event, based on a report parameter. The drawback of this method is that datasets and sql queries are executed again, although nothing changed except crosstable rows sorting.

So i was wondering if there is a way to add a dynamic sort when using an existing rptdocument. My app can retrieve a cached rptdocument wich match with users' selection choices and update its parameters, but applying a dynamic sort on render event doesn't seem having any effect.

Is there any API such myCrossTable.refresh() or myCrossTable.refactory() that we could run in the onRender events? Smile Thats could be great, dynamic sorting or filtering performances in a cross table would be dramatically improved

thx
Dom

[Updated on: Mon, 31 October 2011 06:14]

Report message to a moderator

Re: Dynamically sort a crosstable at render time [message #754034 is a reply to message #753970] Mon, 31 October 2011 10:51 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Currently the open source viewer does not have that functionality. This
can be done with Actuate's commercial viewer though.

Jason

On 10/31/2011 5:57 AM, dpardon wrote:
> Hi,
> I found nice examples of reports that apply dynamic cross-table filters
> in the beforeFactory event, based on a report parameter. The drawback of
> this method is that datasets and sql queries are executed again,
> although nothing changed except crosstable rows sorting.
>
> So i was wondering if there was a way to add a dynamic sort when using
> an existing rptdocument. My app can retrieve a cached rptdocument wich
> match with users' selection choices and update its parameters, but
> applying a dynamic sort on render event doesn't seem having any effect.
>
> Is there any API such myCrossTable.refresh() or myCrossTable.refactory()
> that we could run in the onRender events? :) Thats could be great,
> sorting or filtering performances in a cross table would be dramatically
> improved
>
> thx
> Dom
Previous Topic:Setting a default parameter value from a dataset value
Next Topic:report parameter not set
Goto Forum:
  


Current Time: Mon Jul 28 20:39:28 EDT 2014

Powered by FUDForum. Page generated in 0.03642 seconds