Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Rendering Stored HTML
Ryandb2
We currently have a CMS system that stores content as HTML. We are using web services to pull this information into a BIRT report. The issue we are having is with data type binding. When we try to bind the html data to a field in BIRT we only have the generic data types (string, numeric, BLOB, etc). When we bind this object to a string, it renders as plain text, so in the report viewer you would see <div><strong class='bbc'>Content</strong></div> instead of the rendered content. What is the best way to work around this issue? Is there anyway to tell this field that the content it is storing is HTML and to render it as such?
Find more posts tagged with
Comments
mwilliams
Hi Ryandb2,
You should be able to bring it in as a string, then use a text element to display the value with a format of HTML. Something like:
<VALUE-OF format="HTML">row["HTMLtext"]</VALUE-OF>
With HTML selected in the dropdown where "Auto" is the default.
Ryandb2
Thanks for the help! We tried this with no luck but then found the issue. The formula wasn't working because we were not putting the text inside a container bound to the Dataset. Now it works great!
Thanks again!
mwilliams
Ryandb2,
No problem, glad to help. Just let us know whenever you have questions!