BIRT Exchange Forum: Post report generation sorting (yeah that again) - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Post report generation sorting (yeah that again) Rate Topic: -----

#1 User is offline   schmitty Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 04-December 11


Posted 04 December 2011 - 02:11 PM

I'm currently in the process of implementing BIRT with an application that currently displays reports in pure HTML. We're implementing BIRT so we can deploy report definitions, and not have to redeploy an entire application when a new report is built, or an issue is encountered within a report.

The current HTML reports provide the user the ability to sort their data by clicking on the table column headers. It uses a slightly modified version of this code: http://www.kryogenix...owser/sorttable to handle the sorting.

I've seen posts whereas the dynamic sorting occurs by re-executing the report. As simple as that process would be to implement, some of my reports may take sometime to generate.

So, my question is, how can I gain a reference to the main table within a report, to set it's class to "sortable" (see the link above) I'll also need to add class="sorttable_nosort" to some of the table headers, since some columns won't be sortable.

If anyone could help me out, I'd really appreciate it. This is the last step in implementing BIRT, and would love to this figured out.

Thanks in advance,
Chris
0

#2 User is offline   averma Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 713
  • Joined: 08-August 07


Posted 05 December 2011 - 12:32 PM

Hi Chris,
Have you tried using bookmark on the table in BIRT report and then using javascript to search the HTML element based on its name, like so:
document.getElementById("bookmark_name")
Ashwini

Follow me on Twitter
Read my Blog BIRT Rocks!
0

#3 User is offline   johnw Icon

  • Senior Member
  • View blog
  • Group: Members
  • Posts: 712
  • Joined: 08-May 08


Posted 06 February 2012 - 05:16 AM

Ignoring the spam, to answer this question, you can run your report, and save it as a RPTDOCUMENT, then apply a sort after the fact. The way I have done this is using a RPTDOCUMENT data source after the first run (which is available in the DEVSHARE), and add a sort property dynamically in the data extration task.
0

#4 User is offline   mkh Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 10-November 11


Posted 10 September 2012 - 10:11 PM

Hi John,

I hope you are doing great and thanks for your great efforts for Birt.

my requirement is:
Need to get access of column headers and details row values from generated rptdocumnet from new blank report design through 'Before Factory' even handler.

I have created a sample report design and generated rptdocument for it.

Here i want to do is:

I want to access the generated rptdocument from other report (blank report)for accessing the column headers and detail rows value of the generated rptdocument.

Please give me the directions or ways in order to retrieve the values(Column Headers, details values)

Please help me out for resolving this criteria

Thank you in advance for your concern in my criteria.

Thanks
gk
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users