Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

reportbuilder/Advanced Filter Options: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 1: Line 1:
[[reportbuilder|Back to Index]]
[[reportbuilder|Back to Index]]


*Advanced
==Advanced Filter Options==


TODO
When defining a report's default filters, you can set the 'advanced' flag to 1.
 
<pre>
$this->defaultfilters = array(
    array(
        'type' => 'course',
        'value' => 'fullname',
        'advanced' => 1
    )
);
</pre>
 
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.

Revision as of 11:35, 8 June 2012

Back to Index

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.