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)
Problem with a TextItem Element
Luis
Bonjour,
I'm using a textItemElement in my rptdesign and i put property "ContentType= AUTO.
If i set the text to display with HTML tags the content is not displayed on HTML, it is displayed like plain text!.
In description of contentType property i can read : "BIRT determines the text format by examining the first few characters of the string. If the first characters are "<HTML>" (in either upper case or lower case), then the string is assumed to be HTML. Otherwise, the text is plain text. Any white space before these characters is ignored. That is, "<html>" and " <html>" are both taken to indicate that the text is formatted in HTML."
have i forget a property?
can you help me?
Thanks
Luis
PS: Eclipse BIRT Designer Version 2.2.2.r222_v20071226 Build <2.2.2.v20080227-1131
Find more posts tagged with
Comments
mwilliams
Hi Luis,<br />
<br />
I believe this is a bug, but I could not find a bug report for it. Please create a bug report at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>http://www.eclipse.org/birt/phoenix/reportabug.php</a>
. Thanks.
Luis
Well, the correction of this problem was not possible with a handler class because parametres of onCreate(...) have not enough visibility on instance variables.
The correction was released on modifing the data set (adding new computed columns) and adding an expression on a Dynamic text component in order to set the property "contentType=html" if the text contains html tags and "contentType=plain" if the text has not html tags.
By using a java handler class or Scripts, the property "contentType" can only be modified in onPrepare(...) method. And in onCreate(...) method it is too late to modify this property.
This is really damage because according to data they could change the manner the text would be shown.
See you soon
Luis