RUA Volunteer2?
asked on
Working with multiple Parameters in Crystal Reports 8.5
When you are working with multiple parameters that have the option for ALL vs a range of values or individual (discrete) value.
How do you know which parameter to line up or select first. Is there a hierarchy that should be used based on linked tables and do you have to consider that when selecting which parameter should be selected first.
Currently there is a history table {OELINHST_Terr} see image and it will point to the table which I have to get records from the {IMITMIDX_SQL} in Prod_cat field.
Is there a method to this.....?
How do you know which parameter to line up or select first. Is there a hierarchy that should be used based on linked tables and do you have to consider that when selecting which parameter should be selected first.
Currently there is a history table {OELINHST_Terr} see image and it will point to the table which I have to get records from the {IMITMIDX_SQL} in Prod_cat field.
Is there a method to this.....?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For Instance I have all the Parameters to contend with in the RECORD SELECTION.
({Rpt_OELINHST_Terr.inv_dt } in {Rpt_ReportingDates.CurrFr omDateYTD} to {Rpt_ReportingDates.CurrTo DateYTD} or
{Rpt_OELINHST_Terr.inv_dt} in {Rpt_ReportingDates.PriorF romDateYTD } to {Rpt_ReportingDates.PriorT oDateYTD}) and
{Rpt_OELINHST_Terr.item_no } in {?ItemRange} and
{Rpt_OELINHST_Terr.cus_no} in {?CustomerRange} and
if {?RptTerr} = "ALL" and {?AdoptedTerr} = "ALL" then
{Rpt_OELINHST_Terr.Terr} in "99" to "ZZ"
else
if {?RptTerr} = "ALL" and {?AdoptedTerr} <> "ALL" then
({Rpt_OELINHST_Terr.Terr} in "99" to "ZZ" and {@TimsTerritory} )
or ({Rpt_OELINHST_Terr.Terr} in {?AdoptedTerr} and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in "99" to "ZZ")
else
if {?RptTerr} <> "ALL" and {?AdoptedTerr} = "ALL" then
({Rpt_OELINHST_Terr.Terr} in {?RptTerr} and {@TimsTerritory})
or ({Rpt_OELINHST_Terr.Terr} in "99" to "ZZ" and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in {?RptTerr})
else
({Rpt_OELINHST_Terr.Terr} in {?RptTerr} and {@TimsTerritory} )
or ({Rpt_OELINHST_Terr.Terr} in {?AdoptedTerr} and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in {?RptTerr} )
({Rpt_OELINHST_Terr.inv_dt
{Rpt_OELINHST_Terr.inv_dt}
{Rpt_OELINHST_Terr.item_no
{Rpt_OELINHST_Terr.cus_no}
if {?RptTerr} = "ALL" and {?AdoptedTerr} = "ALL" then
{Rpt_OELINHST_Terr.Terr} in "99" to "ZZ"
else
if {?RptTerr} = "ALL" and {?AdoptedTerr} <> "ALL" then
({Rpt_OELINHST_Terr.Terr} in "99" to "ZZ" and {@TimsTerritory} )
or ({Rpt_OELINHST_Terr.Terr} in {?AdoptedTerr} and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in "99" to "ZZ")
else
if {?RptTerr} <> "ALL" and {?AdoptedTerr} = "ALL" then
({Rpt_OELINHST_Terr.Terr} in {?RptTerr} and {@TimsTerritory})
or ({Rpt_OELINHST_Terr.Terr} in "99" to "ZZ" and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in {?RptTerr})
else
({Rpt_OELINHST_Terr.Terr} in {?RptTerr} and {@TimsTerritory} )
or ({Rpt_OELINHST_Terr.Terr} in {?AdoptedTerr} and {@AdoptedTerritory} and {ARCUSFIL_SQL.terr} in {?RptTerr} )
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked thank you.
ASKER
MacolaTables.png