Focal Point
[SOLVED] Problem Creating Anchor URL that contains parameters

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7491043213

January 02, 2009, 06:29 PM
dcj
[SOLVED] Problem Creating Anchor URL that contains parameters
hello everyone,

I'm using -HTMLFORM in my fex to create some html and one of my elements is an anchor. The href however contains an & character and fex is truncating the line at that position.

For example:
  
-HTMLFORM BEGIN
...
...
<A id=anchor12 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 558; LEFT: 120px; WIDTH: 160px; COLOR: black; FONT-FAMILY: Arial; POSITION: absolute; TOP: 15px; HEIGHT: 15px" href="/approot/prod/tmplate?id=XXXXX12345&mask=49" name=anchor12
<SPAN autoExecute="True">49</A>
...
...
-HTMLFORM END

When I run the fex it produces the following:
<A id=anchor12 style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; Z-INDEX: 558; LEFT: 120px; WIDTH: 160px; COLOR: black; FONT-FAMILY: Arial; POSITION: absolute; TOP: 15px; HEIGHT: 15px" href="/approot/prod/tmplate?id=XXXXX12345
<SPAN autoExecute="True">49</A>



How can I escape the & character so it will get written to the html as part of the href value. &mask is not an &variable, it is a parameter on the url.

Thanks
David

This message has been edited. Last edited by: Kerry,


wf: 7.6.4
App. and reporting server: UNIX/AIX 5.3
January 03, 2009, 03:40 AM
<JG>
&mask


should be

&|mask

January 06, 2009, 10:23 AM
dcj
Thanks JG!! Works perfect.


wf: 7.6.4
App. and reporting server: UNIX/AIX 5.3