I have report with four parameters. My record selection formula looks like:
{FACTS_DIM_PROJECT_TYPE_CODE.ACTIVE} = "Y" and
{V_PACS_PROJECT_STATUS.STATUS_CODE} = "02" and
(if {?ProjType} <> "All" then
{FACTS_DIM_PROJECT_TYPE_CODE.PROJECT_TYPE_DESCRIPTION} = {?ProjType}
else if {?ProjType} = "All" then true) and
(if {?Location} <> "All" then
{FACTS_DIM_FIELD_OFFICE.FIELD_OFFICE_DESCRIPTION} = {?Location}
else if {?Location} = "All" then true) and
{PACS_PROJECT.OPEN_DATE} in {?Start_Date} to {?End_Date}
I need to be able leave ?Startt_Date and ?End_Date sometimes blank. Another words - when user wants to select only Location and Project Type and need all the dates.
{FACTS_DIM_PROJECT_TYPE_CODE.ACTIVE} = "Y" and
{V_PACS_PROJECT_STATUS.STATUS_CODE} = "02" and
(if {?ProjType} <> "All" then
{FACTS_DIM_PROJECT_TYPE_CODE.PROJECT_TYPE_DESCRIPTION} = {?ProjType}
else if {?ProjType} = "All" then true) and
(if {?Location} <> "All" then
{FACTS_DIM_FIELD_OFFICE.FIELD_OFFICE_DESCRIPTION} = {?Location}
else if {?Location} = "All" then true) and
{PACS_PROJECT.OPEN_DATE} in {?Start_Date} to {?End_Date}
I need to be able leave ?Startt_Date and ?End_Date sometimes blank. Another words - when user wants to select only Location and Project Type and need all the dates.