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

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

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

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


Random Solutions  
 
programming4us programming4us