Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Parameter (sometimes optional & smtimes mandatory Post Reply Post New Topic
Author Message
namitanamburi
Newbie
Newbie


Joined: 26 Mar 2009
Online Status: Offline
Posts: 39
Quote namitanamburi Replybullet Topic: Parameter (sometimes optional & smtimes mandatory
     Posted: 12 Jan 2011 at 11:46am
Hello,

I created a report with the query below.

Select * from employee_table where employee_name = {?Ename}.

People may choose to enter a name or may want to see all the employee names.

So I created a default called 'All' for the parameter Ename and created a formula called e_formula stating that

if   {?Ename}  in  {employee_table.Ename} then
{employee_table.Employee_name} else if
{?Ename} = 'All'
then True.

In the select expert set the condition to True.

This works fine , user gets a prompt to enter 'All' for all users else enter 'Employee name' they wish to find.

Now the users feel its too much to enter 'All', cant they just leave it blank which should default to 'All' and proceed to execute the report?

Is there any way to do this?

User will enter Employee name if he wants to find a specific user, else will just ignore that parameter and click on Run to execute the report.

Please advise.
Nammu

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 13 Jan 2011 at 4:28am

as far as I know only 2008 has optional parameters.

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