Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Parameter (sometimes optional & smtimes mandatory
Author
Message
namitanamburi
Newbie
Joined: 26 Mar 2009
Online Status: Offline
Posts: 39
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 13 Jan 2011 at 4:28am
as far as I know only 2008 has optional parameters.
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.