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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Parameters

Status
Not open for further replies.

geestrong

Programmer
Jun 24, 2005
58
US
Hello

Using CR XI on Oracle 8

I am trying to create a conditional parameter that can select a single value or select all the value. I have come across one thread that had code. The thread was vague about where to place this code.

Here is my code:
If {?agency}<> 'ALL'
then
{per_action.agency_code} = {?agency}
else if
{?agency}='ALL'
then
TRUE

I have append all the value from table and added 'ALL' to the parameter list. Trying to figure how to associate "ALL" to return all the agencies?

Thanks,
 
Try this:


If {?agency}= 'ALL'
then True
else
{per_action.agency_code} = {?agency}


 
Thanks for the quick response,

My issue is where to place this code.. Is it place within a formula and the selection expert reference it or is placed somewhere else?
 
You have to place it in Report -->>>selection formulas --->> record
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top