I am displaying a table from my database as a classic report in my oracle apex, Now I would like to add search criteria for this classic report and created a select list, two text fields and a go button till this all went correctly. Here, I would like to display the classic report in the page though these values are not set. How can I make adjustments in the classic reports query so that if these values are not set I should show all the rows from the DB table else show according to the search criteria.
The source of my report is as follows:
select b.*
from "#OWNER#"."Books" b
where i_type = 'CU'
and state = :P46_STATE
and city = :P46_CITY
and name = :P46_NAME
:P46_state is a select list, :P46_city, :P46_name are the text fields from the search criteria if these values are not set have to show full report/ and if set have to show as per the search.
Thanks in advance.