Note: You are currently viewing documentation for Moodle 2.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Dataform search sort.

Dataform search sort

From MoodleDocs
Revision as of 18:14, 20 March 2014 by Itamar Tzadok (talk | contribs)


Using filters

Provided the activity creator adds the filtering options to the view you can filter and sort the displayed list of entries by

  • applying predefined filter
  • using the quick search and per page options (Quick filter)
  • creating and applying your own advanced filters (My saved filters)

df-filter-display-menus.png

All filters are available from the filters menu dropdown. To apply a filter, select the desired filter from the list. To un-apply the currently selected filter, select 'Choose...'.

df-filter-display-menu-options.png

Using quick filter

To display only entries that contain a certain text content in any of the (view) fields enter the text in the 'Search' input box and press Enter. This will create the Quick filter (or update it if it already exists) and apply it to the view (the Quick filter will be selected in the filters menu). If you want to clear the search criterion from the Quick filter, clear the input box and press Enter.

To display only a certain number of entries per page, select the desired number in the Per page dropdown. Similar to the 'Search', a Quick filter will be created (or updated) and applied. If you want to clear the paging from the Quick filter, select 'Choose...' in the 'Per page' dropdown.

You have only one Quick filter and it is updated whenever you use the 'Search' and 'Per page' options. If you want to completely remove the Quick filter from the list, select '* Reset quick filter' in the filters menu.

Using advance (user) filters

Searchable/Sortable fields

This list includes only internal and standard fields. For search/sort options of add-on fields please consult the respective field's page.

Entry actions N/A
Entry author
  • Current user – (search only) matches entries authored by the current user.
  • User first name
  • User last name
  • User username
  • User id number
Entry group
  • Id number
Entry time
  • Time created
  • Time modified

The search value is a string containing an English date/time (including relative date/time such as 'tomorrow'). You can specify a range (for the BETWEEN operator) by entering “from” and “to” dates separated by two dots (..), for example:

3 March 2014 .. 10 March 2014 
Checkbox
  • Content
Comment Mdl N/A
Entry state
  • State

The field is sorted by the state keys, not the state labels.

The search value is a string containing a state label.

File N/A
Number
  • Content
Picture N/A
Radio button
  • Content
Rating Mdl
  • User rating
  • Number of ratings
  • Average of ratings
  • Sum of ratings
  • Highest rating
  • Lowest rating
Select
  • Content
Select (multiple)
  • Content
Text
  • Content
Text area
  • Content
Time
  • Content
Url
  • Content