Solved

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

Posted on 2010-08-16
5
1,481 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 (Megan)
zephyr_hex (Megan) 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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. …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

26 Experts available now in Live!

Get 1:1 Help Now