Hi,
I'm having difficulty with a using multiple parameters in my query selection.
Having a single parameter is no problem but how do I do nest multiple parameters for record retrieval?
The user has several options: They can choose,
1. All Industries or
2. Specific Industry and
3. All Customers or
4. Specific Customer and
5. Date Range
i.e. The user can select "All Industries" or multiple discrete industry values, plus, they can select "All Customers" or multiple discrete customer names. Whatever they choose (All or specific) they still have to select a date range for the report.
What I have so far is:
if {?pIndustry} = "All Industries" then
{industry_list.ind_name} = {industry_list.ind_name} and
{dealer.dl_date} = {?pDateRange}
else
{industry_list.ind_name} = {?pIndustry} and
{dealer.dl_date} = {?pDateRange}
elseif {?pCustomer} = "All Customers" then
{customer_list.cust_name} = {customer_list.cust_name} and
{dealer.dl_date} = {?pDateRange}
else
{customer_list.cust_name} = (?pCustomer) and
{dealer.dl_date} = {?pDateRange}
This isn't working (obviously) but if someone can point me in the right direction of nested IFs with multiple parameters, I would appreciate it.
I'm using CR8.5.
Thanks very much,
Karen
I'm having difficulty with a using multiple parameters in my query selection.
Having a single parameter is no problem but how do I do nest multiple parameters for record retrieval?
The user has several options: They can choose,
1. All Industries or
2. Specific Industry and
3. All Customers or
4. Specific Customer and
5. Date Range
i.e. The user can select "All Industries" or multiple discrete industry values, plus, they can select "All Customers" or multiple discrete customer names. Whatever they choose (All or specific) they still have to select a date range for the report.
What I have so far is:
if {?pIndustry} = "All Industries" then
{industry_list.ind_name} = {industry_list.ind_name} and
{dealer.dl_date} = {?pDateRange}
else
{industry_list.ind_name} = {?pIndustry} and
{dealer.dl_date} = {?pDateRange}
elseif {?pCustomer} = "All Customers" then
{customer_list.cust_name} = {customer_list.cust_name} and
{dealer.dl_date} = {?pDateRange}
else
{customer_list.cust_name} = (?pCustomer) and
{dealer.dl_date} = {?pDateRange}
This isn't working (obviously) but if someone can point me in the right direction of nested IFs with multiple parameters, I would appreciate it.
I'm using CR8.5.
Thanks very much,
Karen