Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » HTML form-style reports with client side Javascript?
HTML form-style reports with client side Javascript? [message #201394] Thu, 16 November 2006 21:25 Go to next message
Eclipse User
Originally posted by: bklevine.viking.com

I am trying to create an HTML form-style report.
I noticed that I can drop in dynamic-text components and transform it into a
form element by specifying its value as:

"<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"

This works quite well.

Where can I define my custom client-side Javascript block in the report
design to be generated in the HTML report output so that various form
elements may interact with each other while the report is being viewed in a
browser? e.g. in the example above, where do I define the Javascript
function myfunc( ) ?

Please let me know.

Thanks.

- Rohit
Re: HTML form-style reports with client side Javascript? [message #201694 is a reply to message #201394] Fri, 17 November 2006 20:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You should be able to use the <script> tag in the dynamic text control and
it will be included in the output.

Jason

"Brianne Levine" <bklevine@viking.com> wrote in message
news:ejiktm$37t$1@utils.eclipse.org...
>I am trying to create an HTML form-style report.
> I noticed that I can drop in dynamic-text components and transform it into
> a form element by specifying its value as:
>
> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>
> This works quite well.
>
> Where can I define my custom client-side Javascript block in the report
> design to be generated in the HTML report output so that various form
> elements may interact with each other while the report is being viewed in
> a browser? e.g. in the example above, where do I define the Javascript
> function myfunc( ) ?
>
> Please let me know.
>
> Thanks.
>
> - Rohit
>
Re: HTML form-style reports with client side Javascript? [message #201719 is a reply to message #201694] Sat, 18 November 2006 00:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: mail.rcolaco.com

I tried this. Doesn't seem to work for me.
Here's my attached rptdesign file for your reference.

When I view the HTML page source that was rendered for the report, the
<script> tag for the dynamic text control was removed.

<div style=" text-align:left;"></div>

Any suggestions on what might be wrong here?

I'm using...

Eclipse 3.2.1
Birt 2.2M1
JDK 1.5_07
IE 6
WinXP Pro

Thanks.

- Rohit


"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:ejl63f$d0f$1@utils.eclipse.org...
> You should be able to use the <script> tag in the dynamic text control and
> it will be included in the output.
>
> Jason
>

>>I am trying to create an HTML form-style report.
>> I noticed that I can drop in dynamic-text components and transform it
>> into
>> a form element by specifying its value as:
>>
>> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>>
>> This works quite well.
>>
>> Where can I define my custom client-side Javascript block in the report
>> design to be generated in the HTML report output so that various form
>> elements may interact with each other while the report is being viewed in
>> a browser? e.g. in the example above, where do I define the Javascript
>> function myfunc( ) ?
>>
>> Please let me know.
>>
>> Thanks.
>>
>> - Rohit
>>
>
>


Re: HTML form-style reports with client side Javascript? [message #201886 is a reply to message #201719] Mon, 20 November 2006 15:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Did you put in the
&lt or did you put < around your form and script tags?

I logged a similar bug last week, but in 2.1.1 the script tag works.


Jason


"Rohit Colaco" <mail@rcolaco.com> wrote in message
news:ejlj7e$7ur$1@utils.eclipse.org...
>I tried this. Doesn't seem to work for me.
> Here's my attached rptdesign file for your reference.
>
> When I view the HTML page source that was rendered for the report, the
> <script> tag for the dynamic text control was removed.
>
> <div style=" text-align:left;"></div>
>
> Any suggestions on what might be wrong here?
>
> I'm using...
>
> Eclipse 3.2.1
> Birt 2.2M1
> JDK 1.5_07
> IE 6
> WinXP Pro
>
> Thanks.
>
> - Rohit
>
>
> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
> news:ejl63f$d0f$1@utils.eclipse.org...
>> You should be able to use the <script> tag in the dynamic text control
>> and
>> it will be included in the output.
>>
>> Jason
>>
>
>>>I am trying to create an HTML form-style report.
>>> I noticed that I can drop in dynamic-text components and transform it
>>> into
>>> a form element by specifying its value as:
>>>
>>> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>>>
>>> This works quite well.
>>>
>>> Where can I define my custom client-side Javascript block in the report
>>> design to be generated in the HTML report output so that various form
>>> elements may interact with each other while the report is being viewed
>>> in
>>> a browser? e.g. in the example above, where do I define the Javascript
>>> function myfunc( ) ?
>>>
>>> Please let me know.
>>>
>>> Thanks.
>>>
>>> - Rohit
>>>
>>
>>
>
>
>
Re: HTML form-style reports with client side Javascript? [message #202000 is a reply to message #201886] Mon, 20 November 2006 22:42 Go to previous messageGo to next message
Eclipse User
Originally posted by: mail.rcolaco.com

No I did not encode HTML unsafe characters as &lt; or &gt;
This was encoded by the ROM serializer for XML persistence ... not entered
by me.
You can verify this by opening the attached design (sent in the previous
posting) and editing the dynamic text control.

FYI ... I'm testing with 2.2M1

- Rohit


"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:ejsibi$bar$1@utils.eclipse.org...
> Did you put in the
> &lt or did you put < around your form and script tags?
>
> I logged a similar bug last week, but in 2.1.1 the script tag works.
>
>
> Jason
>
>
> "Rohit Colaco" <mail@rcolaco.com> wrote in message
> news:ejlj7e$7ur$1@utils.eclipse.org...
>>I tried this. Doesn't seem to work for me.
>> Here's my attached rptdesign file for your reference.
>>
>> When I view the HTML page source that was rendered for the report, the
>> <script> tag for the dynamic text control was removed.
>>
>> <div style=" text-align:left;"></div>
>>
>> Any suggestions on what might be wrong here?
>>
>> I'm using...
>>
>> Eclipse 3.2.1
>> Birt 2.2M1
>> JDK 1.5_07
>> IE 6
>> WinXP Pro
>>
>> Thanks.
>>
>> - Rohit
>>
>>
>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>> news:ejl63f$d0f$1@utils.eclipse.org...
>>> You should be able to use the <script> tag in the dynamic text control
>>> and
>>> it will be included in the output.
>>>
>>> Jason
>>>
>>
>>>>I am trying to create an HTML form-style report.
>>>> I noticed that I can drop in dynamic-text components and transform it
>>>> into
>>>> a form element by specifying its value as:
>>>>
>>>> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>>>>
>>>> This works quite well.
>>>>
>>>> Where can I define my custom client-side Javascript block in the report
>>>> design to be generated in the HTML report output so that various form
>>>> elements may interact with each other while the report is being viewed
>>>> in
>>>> a browser? e.g. in the example above, where do I define the Javascript
>>>> function myfunc( ) ?
>>>>
>>>> Please let me know.
>>>>
>>>> Thanks.
>>>>
>>>> - Rohit
>>>>
>>>
>>>
>>
>>
>>
>
>
Re: HTML form-style reports with client side Javascript? [message #202138 is a reply to message #202000] Tue, 21 November 2006 16:59 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you log a new bug with this report?

Thanks

Jason

"Rohit Colaco" <mail@rcolaco.com> wrote in message
news:ejtaud$ht7$1@utils.eclipse.org...
> No I did not encode HTML unsafe characters as &lt; or &gt;
> This was encoded by the ROM serializer for XML persistence ... not entered
> by me.
> You can verify this by opening the attached design (sent in the previous
> posting) and editing the dynamic text control.
>
> FYI ... I'm testing with 2.2M1
>
> - Rohit
>
>
> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
> news:ejsibi$bar$1@utils.eclipse.org...
>> Did you put in the
>> &lt or did you put < around your form and script tags?
>>
>> I logged a similar bug last week, but in 2.1.1 the script tag works.
>>
>>
>> Jason
>>
>>
>> "Rohit Colaco" <mail@rcolaco.com> wrote in message
>> news:ejlj7e$7ur$1@utils.eclipse.org...
>>>I tried this. Doesn't seem to work for me.
>>> Here's my attached rptdesign file for your reference.
>>>
>>> When I view the HTML page source that was rendered for the report, the
>>> <script> tag for the dynamic text control was removed.
>>>
>>> <div style=" text-align:left;"></div>
>>>
>>> Any suggestions on what might be wrong here?
>>>
>>> I'm using...
>>>
>>> Eclipse 3.2.1
>>> Birt 2.2M1
>>> JDK 1.5_07
>>> IE 6
>>> WinXP Pro
>>>
>>> Thanks.
>>>
>>> - Rohit
>>>
>>>
>>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>>> news:ejl63f$d0f$1@utils.eclipse.org...
>>>> You should be able to use the <script> tag in the dynamic text control
>>>> and
>>>> it will be included in the output.
>>>>
>>>> Jason
>>>>
>>>
>>>>>I am trying to create an HTML form-style report.
>>>>> I noticed that I can drop in dynamic-text components and transform it
>>>>> into
>>>>> a form element by specifying its value as:
>>>>>
>>>>> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>>>>>
>>>>> This works quite well.
>>>>>
>>>>> Where can I define my custom client-side Javascript block in the
>>>>> report
>>>>> design to be generated in the HTML report output so that various form
>>>>> elements may interact with each other while the report is being viewed
>>>>> in
>>>>> a browser? e.g. in the example above, where do I define the Javascript
>>>>> function myfunc( ) ?
>>>>>
>>>>> Please let me know.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> - Rohit
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>
Re: HTML form-style reports with client side Javascript? [message #204581 is a reply to message #202138] Sun, 03 December 2006 00:37 Go to previous message
Eclipse User
Originally posted by: mail.rcolaco.com

Bug #166606 was submitted.

"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:ejvba1$vab$1@utils.eclipse.org...
> Can you log a new bug with this report?
>
> Thanks
>
> Jason
>
> "Rohit Colaco" <mail@rcolaco.com> wrote in message
> news:ejtaud$ht7$1@utils.eclipse.org...
>> No I did not encode HTML unsafe characters as &lt; or &gt;
>> This was encoded by the ROM serializer for XML persistence ... not
>> entered by me.
>> You can verify this by opening the attached design (sent in the previous
>> posting) and editing the dynamic text control.
>>
>> FYI ... I'm testing with 2.2M1
>>
>> - Rohit
>>
>>
>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>> news:ejsibi$bar$1@utils.eclipse.org...
>>> Did you put in the
>>> &lt or did you put < around your form and script tags?
>>>
>>> I logged a similar bug last week, but in 2.1.1 the script tag works.
>>>
>>>
>>> Jason
>>>
>>>
>>> "Rohit Colaco" <mail@rcolaco.com> wrote in message
>>> news:ejlj7e$7ur$1@utils.eclipse.org...
>>>>I tried this. Doesn't seem to work for me.
>>>> Here's my attached rptdesign file for your reference.
>>>>
>>>> When I view the HTML page source that was rendered for the report, the
>>>> <script> tag for the dynamic text control was removed.
>>>>
>>>> <div style=" text-align:left;"></div>
>>>>
>>>> Any suggestions on what might be wrong here?
>>>>
>>>> I'm using...
>>>>
>>>> Eclipse 3.2.1
>>>> Birt 2.2M1
>>>> JDK 1.5_07
>>>> IE 6
>>>> WinXP Pro
>>>>
>>>> Thanks.
>>>>
>>>> - Rohit
>>>>
>>>>
>>>> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
>>>> news:ejl63f$d0f$1@utils.eclipse.org...
>>>>> You should be able to use the <script> tag in the dynamic text control
>>>>> and
>>>>> it will be included in the output.
>>>>>
>>>>> Jason
>>>>>
>>>>
>>>>>>I am trying to create an HTML form-style report.
>>>>>> I noticed that I can drop in dynamic-text components and transform it
>>>>>> into
>>>>>> a form element by specifying its value as:
>>>>>>
>>>>>> "<input type=\"checkbox\" name=\"cbX\" onclick=\"myfunc();\">"
>>>>>>
>>>>>> This works quite well.
>>>>>>
>>>>>> Where can I define my custom client-side Javascript block in the
>>>>>> report
>>>>>> design to be generated in the HTML report output so that various form
>>>>>> elements may interact with each other while the report is being
>>>>>> viewed in
>>>>>> a browser? e.g. in the example above, where do I define the
>>>>>> Javascript
>>>>>> function myfunc( ) ?
>>>>>>
>>>>>> Please let me know.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> - Rohit
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Previous Topic:EclipseCon Attendees - Please Help
Next Topic:PDF and hyperlinks
Goto Forum:
  


Current Time: Tue Sep 16 09:36:36 GMT 2014

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

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