Solved

How to include '+' symbol when using PromptEx

Posted on 2004-10-04
8
260 Views
Last Modified: 2008-02-01
Hi All:

Have a Crystal Report where I am trying to pass 2 arguments: computer program name and version using PromptEx. Almost all of the computer program names display except for one with a version name of "4.0.4a+".  I am assuming the '+' symbol is what is causing the problem.

I tried in my asp page first doing a Server.URLEncode on the version so the portion of the URL string looked like this: ?CodeFamily=GRT33&CompCode=GRT33&Version=4%2E0%2E4a%2B

It did not display any data.

I tried putting quotes around the version like so:
?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a+"

It did not display any data.

Does someone know how you can do this...HELP!
0
Comment
Question by:mathew_s
  • 3
  • 3
8 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 12220477
Try using


?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a++"

or


?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a\+"

mlmcc

0
 
LVL 1

Author Comment

by:mathew_s
ID: 12226076
I tried

?CodeFamily=GRT33&CompCode=GRT33&Version=%224.0.4a++%22

?CodeFamily=GRT33&CompCode=GRT33&Version='4.0.4a++'

?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a++"

?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a+"

?CodeFamily=GRT33&CompCode=GRT33&Version="4.0.4a\+"

Nothing worked. However if I refresh the Crystal Report and enter the values in the Crystal Report when it prompts me for the parameters there is no problem there...I don't get it.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12230479
The HTML is grabbibg the + for some reason and not passing it to Crystal.

Where is the problem?  Is it in the report or the ASP page?

mlmcc
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Author Comment

by:mathew_s
ID: 12237226
Maybe I should change my selection formula for version to 'like' <version> ...or something like that...

But get a load of this.

After I refreshed the Crystal Report and entered the values it worked right. I then looked at the URL and it showed the following:

&promptex-Version=%224%2E0%2E4a%2B%22

I then went to the URL area in IE and just hit enter again and it should just display the same report...but it displays nothing again.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12245188
Sorry.  I don't know enough about Crystal and ASP to be any further help

mlmcc
0
 
LVL 1

Author Comment

by:mathew_s
ID: 12352617
Here's an update for those of you who want to know how I got this to work. Since ASP kept giving me problems, I decided to go to the selection formula in Crystal and manipulate this to grab the 4.0.4a+ record.

stringvar ASDVersion;
ASDVersion := Left({?Version},6);

If ASDVersion = "4.0.4a" then
   {ASD_Code.Computer Program Name} = {?ComputerProgramName} and
   {ASD_Code.Version} ="4.0.4a+"
Else
   {ASD_Code.Computer Program Name} = {?ComputerProgramName} and
   {ASD_Code.Version} = {?Version};
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12389846
Closed, 50 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question