Skip to main content



      Home
Home » Archived » BIRT » Text Field in HTML Format
Text Field in HTML Format [message #76995] Mon, 26 September 2005 08:18 Go to next message
Eclipse UserFriend
Originally posted by: coquel.yahoo.fr

I am having trouble using text fields in HTML format.
When I include a parameter, it add a whitespace before and after the
parameter :
"someText<VALUE-OF>params["paramsName"]</VALUE-OF>, someText" --> "someTexte
[param] , someText"

I also have troubles with cumulative text formating tags. It doesn't close
properly the tags :
"someText<B><I><VALUE-OF>params["paramsName"]</VALUE-OF ></I></B>, someText" .
In this case, the bold tag is never closed.

I get this trace :
line 3 column 122 - Warning: inserting implicit <b>
line 3 column 122 - Warning: inserting implicit <i>
line 3 column 145 - Warning: replacing unexpected </value-of> by </i>
line 3 column 156 - Warning: replacing unexpected </i> by </b>
line 3 column 160 - Warning: missing </value-of> before </b>
line 3 column 160 - Warning: replacing unexpected </b> by </i>
line 5 column 62 - Warning: missing </b>


Thanks in advance,
Nicolas
Re: Text Field in HTML Format [message #77004 is a reply to message #76995] Mon, 26 September 2005 10:59 Go to previous messageGo to next message
Eclipse UserFriend
Nicolas,
What version of BIRT are you using. I built a report and it did not seem to
add the whitespace or the bolding issue.
one thing you may try is in the Edit Text Item is do something like:

<VALUE-OF>var test=params["parmtest"];
test = test.replace(/^\s*|\s*$/g,"");</VALUE-OF>

Can you post the full contents of your Text Item?

Jason Weathersby
BIRT PMC


"Nicolas Coquel" <coquel@yahoo.fr> wrote in message
news:9fd6455619b2c5dec48ccbed78572132$1@www.eclipse.org...
>I am having trouble using text fields in HTML format.
> When I include a parameter, it add a whitespace before and after the
> parameter :
> "someText<VALUE-OF>params["paramsName"]</VALUE-OF>, someText" -->
> "someTexte [param] , someText"
>
> I also have troubles with cumulative text formating tags. It doesn't close
> properly the tags :
> "someText<B><I><VALUE-OF>params["paramsName"]</VALUE-OF ></I></B>,
> someText" . In this case, the bold tag is never closed.
>
> I get this trace :
> line 3 column 122 - Warning: inserting implicit <b>
> line 3 column 122 - Warning: inserting implicit <i>
> line 3 column 145 - Warning: replacing unexpected </value-of> by </i>
> line 3 column 156 - Warning: replacing unexpected </i> by </b>
> line 3 column 160 - Warning: missing </value-of> before </b>
> line 3 column 160 - Warning: replacing unexpected </b> by </i>
> line 5 column 62 - Warning: missing </b>
>
>
> Thanks in advance,
> Nicolas
>
>
Re: Text Field in HTML Format [message #77293 is a reply to message #77004] Tue, 27 September 2005 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: coqueln.yahoo.fr

I'm using the following configuration :
Birt 1_0_1
Eclipse 3.0.1

Using a regular expression doesn't work, my parameter doesn't contain any
whitespace.

There is a difference between generating html or PDF reports:
- HTML : the whitespace is not add when there is no text formating tags
(bolding ...).
- HTML : the whitespace is add when I use text formating tags.
- PDF : the whitespace is always add.


My Text Item full content :

<VALUE-OF>params["civilite"]</VALUE-OF> <VALUE-OF>params["nom"]</VALUE-OF><BR>
<BR>
Lors de notre récent <VALUE-OF>params["entretien"]</VALUE-OF>, vous avez
souhaité souscrire à la garantie
<B><I><VALUE-OF>params["produit"]</VALUE-OF></I></B>, et je vous en
remercie.<BR>
<BR>
Pour valider votre adhésion, vous voudrez bien me retourner :


Nicolas
Re: Text Field in HTML Format [message #77309 is a reply to message #77293] Tue, 27 September 2005 09:57 Go to previous message
Eclipse UserFriend
Nicolas,
I see what you mean. There is a similar bug reported, but this one may be
different.
The number is 104173.
If you can please add your comments to the case.
I dont think this will help your problem, but you can add two strings in on
VALUE-OF line.
Like
<VALUE-OF>params["civilite"]</VALUE-OF> <VALUE-OF>params["nom"]</VALUE-OF>
Could be
<VALUE-OF>params["civilite"] + params["nom"]</VALUE-OF>

Jason Weathersby
BIRT PMC


"Nicolas Coquel" <coqueln@yahoo.fr> wrote in message
news:035e1a216fc4c1d2f190fc93a4b9bdd2$1@www.eclipse.org...
> I'm using the following configuration : Birt 1_0_1
> Eclipse 3.0.1
>
> Using a regular expression doesn't work, my parameter doesn't contain any
> whitespace.
>
> There is a difference between generating html or PDF reports:
> - HTML : the whitespace is not add when there is no text formating tags
> (bolding ...).
> - HTML : the whitespace is add when I use text formating tags.
> - PDF : the whitespace is always add.
>
>
> My Text Item full content :
> <VALUE-OF>params["civilite"]</VALUE-OF>
> <VALUE-OF>params["nom"]</VALUE-OF><BR>
> <BR>
> Lors de notre r
Previous Topic:How to define the scale of an X Axis (Chart Data)
Next Topic:3 values on X-axis
Goto Forum:
  


Current Time: Fri Apr 25 00:06:11 EDT 2025

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

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

Back to the top