[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Running a report with the option of OR / AND between 2 Parameter fields..

Posted on 2011-10-29
4
Medium Priority
?
210 Views
Last Modified: 2012-05-12
I have 2 parameter fields have similiar formulas 1 based on ?Warehouse and based on ?StockCode
example...
if {?Warehouse} = 'ALL'
then {LotValuation.Warehouse} like '*'
else {?Warehouse} = {LotValuation.Warehouse}

I want the Prompt to be a bit more dynamic...

-Allow no entry to 1 parameter or the other or both..

Is this possible??
0
Comment
Question by:Mikeyman_01
  • 2
  • 2
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 37051414
What version of Crystal?

CR2008 and CR2011 have optional parameters.  All other versions require values to be entered for all parameters

What do you mean the prompt be more dynamic?

You can test like

{?Warehouse} = 'ALL'
OR
{?Warehouse} = {LotValuation.Warehouse}

mlmcc
0
 

Author Comment

by:Mikeyman_01
ID: 37051476
CR2008...

The prompts need to be based on either ?Warehouse OR ?StockCode...

I want the enduser to be able to have option of not chossing either of these prompts when the report runs..

0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 37051486
Make the parameters optional.  You will get prompted but they can just click OK

You test as

(
If HasValue({?Warehouse}) then
    {?Warehouse} =  {LotValuation.Warehouse}
Else
    TRUE
)
AND
(
If HasValue({?StockCode}) then
    {?StockCode} = {StockCodeField}
Else
    TRUE
)


mlmcc
0
 

Author Closing Comment

by:Mikeyman_01
ID: 37053876
once again... you are THE MAN!!!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question