Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kindly see what's wrong with my selection formula...

Status
Not open for further replies.

dlkraft

Programmer
Dec 5, 2000
47
0
0
US
I'm using the web reporting system. Works well, except,
in my two part record selection formula only one of the
parameters is being understood. I'm trying to
get:{aphist.period]='11'. I also want:{aphist.Glyear}='2000'

Only the ={aphist.Glyear}='2000' is working, the system is ignoring the column ->{aphist.period]='11'

Here's my link:

<a href=&quot;./inap_test.rpt?sf={aphist.Glyear}='2000'&amp;
{aphist.period}='11'&amp;init=actx&quot;>INAP test report</a>

Advice please!
 
You can not use the '&amp;' you have to use the URL encode verion of the character. Steven Fowler, Principal
steve.fowler@fowlerconsulting.com
- Development, Training, and Consulting
wpe1.gif
 
Thanks for responding! I have checked these forums at length and found that &amp; is urlencoded as %26.

But two questions arise...

1 Do I simply have to make the substitution as below, swapping the &amp; out:

<a href=&quot;./inap_test.rpt?sf={aphist.Glyear}='2000'%26
{aphist.period}='11'&amp;init=actx&quot;>INAP test report</a>

2. Or do I have to replace ALL possible characters with their urlencoded equivalents?


Thanks!

 
In you example you will also have to change the = sign.
There are many URL reserved characters that you will want to change.

There are both JavaScript and VBScript functions to convert a string to urlendcoded value. Then use the result to build up your URL.



Steven Fowler, Principal
steve.fowler@fowlerconsulting.com
- Development, Training, and Consulting
wpe1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top