Solved

Auto select all the default values of a parameter when the crystal report is opened

Posted on 2010-08-16
5
1,457 Views
Last Modified: 2012-05-10
Hello Experts,
I have put a parameter in my crystal report which is a static type and have entered all the possible values of the parameter. It allows multiple values.

When the report runs the parameter is displayed correctly with all the static values allowing users to select all. What I want is that all the values should be selected by default. This will save one step for the user and also he can unselect specific values if required.

How can I auto select all values for the parameter?

Thank you for your time.
Regards,
$wapnil
0
Comment
Question by:spattewar
5 Comments
 
LVL 42

Assisted Solution

by:zephyr_hex
zephyr_hex earned 167 total points
ID: 33450162
there is an option "save data with reports" under the File menu.

this will save the data as of the last run.  it does not re-run the report with the default parameters.

as far as i know, you can't run a report without being prompted for the parameters, unless you run the report by supplying the parameters.  there are applications that run crystal reports on a schedule, and these get configured with the parameters which they use to run the report with.

i'm working with an older version of CR, but as far as i know, what i'm saying is true for the version you're using, too.
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 167 total points
ID: 33451312
There is no way to seelct all values by default in the Crystal parameter screen.

You could add an ALL option to use to select all values. and select that by default.

If you save the report with data when you try to refresh to get new data you will get prompted for new parameter values but the original values will be shown.

mlmcc
0
 
LVL 8

Accepted Solution

by:
kingjely earned 166 total points
ID: 33451551
Hi $wapnil

This is just a suggestion as i do the same thing,

Is your parameter feild your talking about a string?

If it is, go to the select expert>show formular>>> Formular Editor..

and change your statement

FROM

({Tablename.fieldname} = {?PARAMTER}

TO

({Tablename.fieldname} like {?PARAMTER}


Now when you refresh your report use the WILDCARD * FOR ALL

so REFRESH REPORT

Enter Parameter  *

This will pass everything from the field to the paramter so you dont have to go through and select everything.

A step further,
You could then go to the PARAMETERfield righclick EDIT
And add the default value *

This defaults the field to '*' everything.

Hope that helps.
Kj


0
 
LVL 22

Author Closing Comment

by:spattewar
ID: 33487404
Thanks. All the comments were informative and improved my knowledge.
0
 

Expert Comment

by:BHR
ID: 33878070
an additional note on kj's most excellent suggestion:

After you add * to the default value list, while still in the "set default values" window, go ahead and click "define desciption" (button) to add a description such as "All".  Then make sure the Display setting is set to "vaules and description".

This way, the parameter value will appear as "* - All"
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now