Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Button on report(I need to enter data already generated report)
icon5.gif  Button on report [message #795508] Fri, 10 February 2012 14:52 Go to next message
Marco Herrarte is currently offline Marco HerrarteFriend
Messages: 5
Registered: February 2012
Junior Member

Good afternoon, thanks in advance for reading my problem

It turns out that I am developing a report in Birt from eclipse and one of the user requirements was to be displayed in HTML and from there to see some graphs and pressing a button to enter a short analysis! The problem comes in to develop Javascript button click and give input appears to fill with data and sends them to a text that places previously in the report, but it turns out when trying to pass from the Html Viewer with full text to PDF nothing appears and I think that is because it actually modified Html but only add the text virtually any property in JavaScript there to help me with the problem or solution? The intro text is using the following script:

<script type="text/javascript">
value1 function () {
name = prompt ("Description", "Enter ...");
document.getElementById ("MyTextBox"). innerHTML = name;
}
</ script>
<input type="button" onclick="valor1()" value="Ingresar comentario">

Very grateful in advance best regards,
Re: Button on report [message #795561 is a reply to message #795508] Fri, 10 February 2012 15:59 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You are correct. Since you are modifying the report with client side
script the PDF will not have access to this information. You may want
to add a servlet that writes the data somewhere (db?) and regenerate the
report in PDF. The report would have to then read the comment data from
the db and embed it in the pdf.

Jason

On 2/10/2012 9:52 AM, Marco Herrarte wrote:
> Good afternoon, thanks in advance for reading my problem
>
> It turns out that I am developing a report in Birt from eclipse and one
> of the user requirements was to be displayed in HTML and from there to
> see some graphs and pressing a button to enter a short analysis! The
> problem comes in to develop Javascript button click and give input
> appears to fill with data and sends them to a text that places
> previously in the report, but it turns out when trying to pass from the
> Html Viewer with full text to PDF nothing appears and I think that is
> because it actually modified Html but only add the text virtually any
> property in JavaScript there to help me with the problem or solution?
> The intro text is using the following script:
>
> <script type="text/javascript">
> value1 function () {
> name = prompt ("Description", "Enter ...");
> document.getElementById ("MyTextBox"). innerHTML = name;
> }
> </ script>
> <input type="button" onclick="valor1()" value="Ingresar comentario">
>
> Very grateful in advance best regards,
Re: Button on report [message #795568 is a reply to message #795561] Fri, 10 February 2012 16:05 Go to previous messageGo to next message
Marco Herrarte is currently offline Marco HerrarteFriend
Messages: 5
Registered: February 2012
Junior Member

Thanks for the reply,
Really do not need to send the information to a DB, all i need is in the HTML report to give to the button click can be entered only analysis and can generate the PDF there any way to do so or is there any way to send that text to a variable and update the report and with that text?
thanks
Re: Button on report [message #795574 is a reply to message #795568] Fri, 10 February 2012 16:13 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I do not know of a way of doing this without some server side code.

Jason

On 2/10/2012 11:05 AM, Marco Herrarte wrote:
> Thanks for the reply,
> Really do not need to send the information to a DB, all i need is in the
> HTML report to give to the button click can be entered only analysis and
> can generate the PDF there any way to do so or is there any way to send
> that text to a variable and update the report and with that text?
> thanks
Re: Button on report [message #795582 is a reply to message #795574] Fri, 10 February 2012 16:29 Go to previous message
Marco Herrarte is currently offline Marco HerrarteFriend
Messages: 5
Registered: February 2012
Junior Member

Ok thank you
Previous Topic:need latest runtime for web viewer
Next Topic:Equivalent function to Oracle query re-write in BIRT (@AggregateAware in Business Objects)?
Goto Forum:
  


Current Time: Thu Mar 28 15:52:28 GMT 2024

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

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

Back to the top