reportbuilder/Advanced Filter Options: Difference between revisions
From MoodleDocs
No edit summary |
(Note about plan not to migrate this page to the new developer resources. See template for more info.) |
||
Line 1: | Line 1: | ||
{{Template:WillNotMigrate}} | |||
[[reportbuilder|Back to Index]] | [[reportbuilder|Back to Index]] | ||
Latest revision as of 14:06, 24 June 2022
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
Advanced Filter Options
When defining a report's default filters, you can set the 'advanced' flag to 1.
$this->defaultfilters = array( array( 'type' => 'course', 'value' => 'fullname', 'advanced' => 1 ) );
This will include the filter but hide it by default, only revealing it when the user presses the "Show advanced" button. This is useful if you want to make lots of filters available but only show the most commonly used ones initially.
Report administrators can set the advanced state of filters via a checkbox on the Filters tab.