How to force a user to filter on a column A every time column B is in the request


Something interesting I found while browsing OBIEE docs. This should be incredibly useful to force users select enough columns for the report.
How to not allow the execution of the request and show an appropriate error message to the user If request contains any of the following columns: (Sales Amount, Sales Amount With Tax, Ticket Count), and if request does not contain at least one of the columns (Date, Month, Year, Day of Week)
This is possible via the Blocking Requests Based on Formula functionality using a custom js file
This is explained in Oracle Business Intelligence Presentation Services Administration Guide > Administering Oracle BI Answers > Blocking Requests in Answers
To locate the documentation please navigate to OTN: http://www.oracle.com/technology/documentation/bi_doc.html
Then drill on “Oracle Business Intelligence Enterprise Edition Documentation”
> View Library (for the required version) > Documentation tab > Oracle Business Intelligence Presentation Services Administration Guide
The documentation does not state where to place the js file.
*Using oc4j as the web server, you need to put the custom .js in