I have a report that returns data results by entering parameters.
In other words, the report result is displayed when you enter a parameter. If no value has been entered for the parameter, the report should still be displayed. When the parameter is used as a condition in the query sentence where the report draws data, the rows that do not contain data in the column will not appear in the report.
I couldn't find how to display them. How should I write the condition in the query sentence?
Can anyone help with this please?
Sincerely..
Best answer by Tracy Norwillo
@ismigulay
To make the parameter optional, use the parameter query flags described here:
IF project_id_ IS NOT NULL AND project_id_ != '%' THEN project_ := project_id_; ELSIF project_id_ = '%' OR project_id_ IS NULL THEN project_ := '%' ; END IF;
Then i solved the problem by using the condition like this.