I found the solution: whenever user interact with query with SELECT button and click OK, the method dialogUpdateQuery() will be called and we can modify the query.
↧