Displaying HTML from data-source [message #63619] |
Tue, 02 August 2005 10:54  |
Eclipse User |
|
|
|
Originally posted by: amitbose.gmail.com
Hi,
I'm trying to report on the contents of a DB whose fields are HTML
expressions, like "<a href='foo.html'>some link</a>". I want this content
to be displayed as processed HTML in the report. If the contents are
fetched into a "Data" element, BIRT escapes the HTML tagging so that the
content is shown verbatim. I tried using the "Text" element with
content-type "HTML/Dynamic Text", but still got the same results.
Finally I decided to hack my way around by undoing the escaping done
BIRT of contents, before presentation (i.e writing code in the onRender()
method of the report element). Unfortunately, the scripting documentation
in the latest nightly does not provide any new info about this...I
couldn't find any examples, and am badly stuck.
Can anybody help?
Thanks,
Amit
|
|
|
Re: Displaying HTML from data-source [message #64280 is a reply to message #63619] |
Wed, 03 August 2005 17:03   |
Eclipse User |
|
|
|
Hi, Amit
Could you file an bugzilla entry to support this usage? Where in the report
do you plan to put this HTML expressions? As fields in a table, or inside
the body of a text, or report title, or any places that supports string
expression?
Thank you
Wenfeng
"Amit" <amitbose@gmail.com> wrote in message
news:041606e815ae968b61bca5a2acb66d4b$1@www.eclipse.org...
> Hi,
> I'm trying to report on the contents of a DB whose fields are HTML
> expressions, like "<a href='foo.html'>some link</a>". I want this content
> to be displayed as processed HTML in the report. If the contents are
> fetched into a "Data" element, BIRT escapes the HTML tagging so that the
> content is shown verbatim. I tried using the "Text" element with
> content-type "HTML/Dynamic Text", but still got the same results.
> Finally I decided to hack my way around by undoing the escaping done
> BIRT of contents, before presentation (i.e writing code in the onRender()
> method of the report element). Unfortunately, the scripting documentation
> in the latest nightly does not provide any new info about this...I
> couldn't find any examples, and am badly stuck.
> Can anybody help?
> Thanks,
> Amit
>
|
|
|
Re: Displaying HTML from data-source [message #79107 is a reply to message #63619] |
Tue, 04 October 2005 20:34  |
Eclipse User |
|
|
|
I was loking into the bugzilla issue, you could try using the format="html"
to prevent escaping of the html text
- create a text with content type="html/dynamic"
- set the value to <VALUE-OF format="html">row["field_html"]</VALUE-OF>
--Rima Kanguri
Amit wrote:
> Hi,
> I'm trying to report on the contents of a DB whose fields are HTML
> expressions, like "<a href='foo.html'>some link</a>". I want this content
> to be displayed as processed HTML in the report. If the contents are
> fetched into a "Data" element, BIRT escapes the HTML tagging so that the
> content is shown verbatim. I tried using the "Text" element with
> content-type "HTML/Dynamic Text", but still got the same results.
> Finally I decided to hack my way around by undoing the escaping done
> BIRT of contents, before presentation (i.e writing code in the onRender()
> method of the report element). Unfortunately, the scripting documentation
> in the latest nightly does not provide any new info about this...I
> couldn't find any examples, and am badly stuck.
> Can anybody help?
> Thanks,
> Amit
|
|
|
Powered by
FUDForum. Page generated in 0.02583 seconds