Solved

Error Message if Parameter Doesn't Contain Value(s)

Posted on 2013-06-27
4
233 Views
Last Modified: 2013-06-28
Hello Experts!

I am using Crystal Reports 2008.  I currently have a report request that has three parameter fields.  All of the fields are "optional", but at least one has to be chosen (if that makes sense).  If the user does not enter a value into at least one of the fields, the report is supposed to display an error message prompting the user to enter a value.  I have an alert set, but the report has to run before it is evaluated so that doesn't work.  Is this possible?

Thanks!
0
Comment
Question by:SBsUserName
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 39282942
I don't think so.

The parameter screen only knows that there are 3 parameters and the are optional.  

To accomplish what you want, you will need to build an application to run the reports and a parameter screen that can test to see if one has a value.

mlmcc
0
 
LVL 18

Assisted Solution

by:vasto
vasto earned 250 total points
ID: 39283108
I agree, this validation should be part of the viewer not part of the report.
What viewer are you using?

Here is a video, which shows  an example of parameter's validation. (jump to position 8:30 min) : http://www.r-tag.com/Pages/Preview_Demo.aspx
0
 

Author Comment

by:SBsUserName
ID: 39284182
We are using Crystal Report Viewer - 2008.

That is the answer I was expecting, but needed to ask the experts!  Thanks!
0
 
LVL 18

Expert Comment

by:vasto
ID: 39284215
You can request a free license for the viewer above from this address :
http://www.r-tag.com/Pages/FreeCrystalReportsViewer.aspx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
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…

739 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