Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamically Modifying a Report from the BIRT PDF Viewer
Dynamically Modifying a Report from the BIRT PDF Viewer [message #774866] Wed, 04 January 2012 20:01 Go to next message
JB . is currently offline JB .
Messages: 9
Registered: November 2011
Junior Member
I have created a report that I output from the report designer using the
BIRT PDF viewer. I want to look at the report to review it to ensure
that it looks like I want it to and that it contains the correct
information. Then I want to be able to click a button or text on the
report that will call a stored procedure in my database to run an INSERT
command using some of the report variables. I also want the button or
text that I click on to be hidden after the click.

To see if I could get an interactive button on the PDF I have tried
adding a text element to the report that is set to html type and then I
entered:
<INPUT type="button" value="Refresh" onclick="reloadpage()" />
as shown in an old post:
http://www.eclipse.org/forums/index.php/mv/msg/204101/652984/#msg_652984

The problem with the above item is that the button does not show in the
PDF viewer.

I have a workaround that should work but it is not very clean. I could
create a hyperlink that calls a subreport that is just a duplicate
report that does not have the hyperlink in it and also calls the INSERT
command. I would however like to have a solution that is contained in
just one report file.

Thanks,
JB
Re: Dynamically Modifying a Report from the BIRT PDF Viewer [message #780639 is a reply to message #774866] Wed, 18 January 2012 20:43 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1639
Registered: July 2009
Senior Member

Couldn't you just use the same idea as you are in your workaround with a single report? Just reload the report with your hyperlink and pass the appropriate parameters to do your INSERT and display the appropriate data?

Regards,

Michael
http://www.birt-exchange.org


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Data Source shows No Available Items
Next Topic:parameter marker
Goto Forum:
  


Current Time: Wed Oct 22 23:08:42 GMT 2014

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

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