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 .Friend
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
<INPUT type="button" value="Refresh" onclick="reloadpage()" />
as shown in an old post:

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.

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 WilliamsFriend
Messages: 1884
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?




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: Tue Apr 21 05:06:45 GMT 2015

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

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