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

regarding dynamic parameter

Status
Not open for further replies.

americvish

IS-IT--Management
Aug 5, 2010
26
US
Hi,
I have dynamic parameter in the report and i have the requirement to get all values in the drop down list to get all the values selected.
I have tried but not able to get it.

So wanted to know
Is it possible to get all option in the dynamic parameter list? and
is it possible to pass custom values to the parameter?
and finally
can we assign default values in the dynamic parameter?

thanks in advance.
 
You could create a command like the following (using the Xtreme database):

Select Orders.`Ship Via`
from Orders
Union
Select 'All'
from Orders
Union
Select 'Default'
from Orders

You would not link the command to the table used in the report (Orders), and then you would create a record selection formula like this:

(
if not({?My Parameter} in ['All','Default']) then
{Orders.Ship Via} = {?My Parameter} else
if {?My Parameter} = 'Default' then
{Orders.Ship Via} = 'UPS' else //'UPS' is the default value here
if {?My Parameter} = 'All' then
true
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top