i developed a SSRS report and related artifacts as below:
Query (contains one table GeneralJournalEntry)
CustomerController (extends the SrsReportRunController)
SSRS Report (which use the query defined above)
the report data set is based on the query and the property “Dynamic Filters” is “False”. now i created a menu item and link to the custom controller class.
once the report open all the data is rendered.
my question:
is it possible for me to filter the data by custom code in the controller ?
You just have to overwrite the prePromptModifyContract() method on the report controller class.
Here is an example of code for prePromptModifyContract() method which checks if there were any args passed through the menu item button (a datasource arg). And if there was a current buffer, then based on the record data the main query of the report will be modified - a new range for InvoiceAccount will be set up.