Hello,
I have below record selection criteria
If {?Status}='ALL' Then True Else {Command.Status}={?Status}
and
{Command.DateService}>={?StartDate}
and
{Command.DateService}<={?EndDate}
My goal is when user selects ALL or do not select any value for Status parameter i do not want to include it part of the record selection criteria. I thought above will work but when i look at the query the where clause has
Command.Status=N'' when {?Status}='ALL' or ISNULL({?Status})
above giving me incorrect data because it is returning records with null status but i would like to return records with in the date range regardless of status criteria.
how could i achieve it. I appreciate guidance.
Regards
Harris
I have below record selection criteria
If {?Status}='ALL' Then True Else {Command.Status}={?Status}
and
{Command.DateService}>={?StartDate}
and
{Command.DateService}<={?EndDate}
My goal is when user selects ALL or do not select any value for Status parameter i do not want to include it part of the record selection criteria. I thought above will work but when i look at the query the where clause has
Command.Status=N'' when {?Status}='ALL' or ISNULL({?Status})
above giving me incorrect data because it is returning records with null status but i would like to return records with in the date range regardless of status criteria.
how could i achieve it. I appreciate guidance.
Regards
Harris