Button on report [message #795508] |
Fri, 10 February 2012 14:52 |
|
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 |
|
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 |
|
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 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03372 seconds