Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Crystal Report Auto Generated Parameters Post Reply Post New Topic
Author Message
Kirk Armstrong
Newbie
Newbie
Avatar

Joined: 06 Jun 2008
Location: United Kingdom
Online Status: Offline
Posts: 3
Quote Kirk Armstrong Replybullet Topic: Crystal Report Auto Generated Parameters
     Posted: 24 May 2011 at 4:12am
Hi,
 
Has anyone resolved this problem.
 
My report is calling a stored procedure which has  startdate and  enddate
datetime parameters. These parameters are  passed into the stored procedure as the result set from the stored procedure - a union of select statements would be far too large to return to crystal without filtering by where clauses on the server side.
 
The problem is the auto generated calendar prompts when the user runs the report have the time component.  A user defined datetime parameter would allow change to a date but this auto generated parameter does not.
 
If I specify the stored procedure parameters as dates then the auto generated parameter is set as a string with no calendar prompt and again this parameter cannot be edited /changed to a date.
 
Also .. the Set to Null check box appears underneath the Calendar prompts - something I do not want either.
 
I can remove the time portion from the passed parameters within the stored procedure but the user interface looks poor as there is the time portion which is not used.
 
I can ask the user to not check the Set to Null or take care of it in the stored procedure  but again the user interface is poor as I do not want the Set To Null to show at all.
 
Thanks for any help -
I look forward to any positive news
 
Kind Regards
 
Kirk
 
Kirk Armstrong
IP IP Logged
Dewald
Groupie
Groupie
Avatar

Joined: 02 Jun 2011
Location: South Africa
Online Status: Offline
Posts: 47
Quote Dewald Replybullet Posted: 02 Jun 2011 at 10:58pm
You can create a view in SQL.
Create a parameter in Crystal and use SQL Expressions in the select expert.
 
This way the selection will still occur on the SQL Server and not in Crystal.
 
Dewald Botha
http://www.ITClarity.co.za
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum