Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default parameters in crystal repoprts

Status
Not open for further replies.

syncdba

IS-IT--Management
Nov 28, 2005
206
0
0
US
Hi,
I have created a report in CRXI with default parameters. Ex. Start_Date=Today's date as default. It is working fine in CRXI. but when I published the report in CRXI enterprise I saw only two options for setting parameters there. Is there any way I can keep the start_date as default & when users need to change the start_date, they can input a new start_date.

Any help.
 
Just answered this one;

Set the defaulkt to 1/1/1970 or some such, check show only description and place "Today" in the description.

Now change your report->record selection->record to:

(
if {?MyDate} <> cdate(1970,1,1) then
{table.date} in {?Start_date} to {end_date}
else
if {?MyDate} = cdate(1970,1,1) then
{table.date} = currentdate
)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top