On the report page of my Oracle APEX application, the report source is defined by sql with
SELECT VALUE1, VALUE2, VALUE3 ... FROM TABLE1
When the user clicks a button, for example, button 'Sort', I would like to add JOIN, WHERE and ORDER BY clauses to the report source sql.
The new report source after the button click event should be
SELECT VALUE1, VALUE2, VALUE3 ... FROM TABLE1
JOIN TABLE2 WHERE ID='123' ORDER BY VALUE2 ASC
How do you achieve this?