Dataform search sort

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


Using predefined filters

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 None
Entry author Importing entry author info allows for adding entries on behalf of users. You can use either one of the following patterns provided that the respective user attribute (id, idnumber, username) is unique in your Moodle site.
  • [[EAU:id]]
  • [[EAU:idnumber]]
  • [[EAU:username]]
Entry group Importing entries with group info allows you to add entries for specific groups. You can use either one of the following patterns. Currently you can import group info for an entry even if the designated entry author is not a member of that group.
  • [[EGR:id]]
  • [[EGR:idnumber]]
Entry time Importing entries with entry time info allows you to add entries with specific time created and modified. When both time created and time modified are imported, if time modified is earlier than time created it will be adjusted to the time created.

The imported value can be a string containing an English date/time (including relative date/time such as 'tomorrow') or a Unix timestamp.

  • [[ETM:timecreate]]
  • [[ETM:timemodified]]
Checkbox By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration. Multiple options should be separated by #.

Applicable patterns:

  • [[fieldname]]
Comment Mdl None
Entry state Imports entry states by state label. For example, with an entrystate field that contains the states Submitted, Under review, Reviewed, Accepted and Rejected, the import CSV value can be either Submitted, Under review, Reviewed, Accepted or Rejected. Note that since Submitted every new entry is by default in that state and there is no need to import it explicitly.

Applicable patterns:

  • [[fieldname]]
File You can import entries with file field content. The field import settings allow you to upload a zip file with the content files. The imported value in the csv should be a comma delimited list of file names. For each imported entry, if the zip file contains files with the specified file names, these files will be added to the entry content. If imported entries specify the same file names, each entry will have its own copies of the imported files.

Applicable patterns:

  • [[fieldname]]
Number Imports numbers, e.g. 42, 42.6778, -133.

Applicable patterns:

  • [[fieldname]]
Picture You can import entries with images. The field import settings allow you to upload a zip file with image files. The imported value in the csv should be a comma delimited list of file names. For each imported entry, if the zip file contains files with the specified file names, these files will be added to the entry content. If imported entries specify the same file names, each entry will have its own copies of the imported files.

Applicable patterns:

  • [[fieldname]]
Radio button By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration.

Applicable patterns:

  • [[fieldname]]
Rating Mdl None
Select By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration.

Applicable patterns:

  • [[fieldname]]
Select (multiple) By default only options that exist in the field configuration will be imported. If you set 'Allow adding options' to Yes, options which do no exist in the field configuration will also be imported and added to the configuration. Multiple options should be separated by #.

Applicable patterns:

  • [[fieldname]]
Text Imports plain text, e.g. Hello world, Dataform.

Applicable patterns:

  • [[fieldname]]
Text area Imports multi-line text, either plain or html. For importing html, the field should be configured to enable editor. For example, the import value
<span style="background-color:#006699;color:#FFF">Big Blue Marble</span>

would be imported as such and displayed as Big Blue Marble when the field enables editor, and as simple text Big Blue Marble if editor is not enabled in the field.

Applicable patterns:

  • [[fieldname]]
Time The imported value can be a string containing an English date/time (including relative date/time such as 'tomorrow') or a Unix timestamp.

Applicable patterns:

  • [[fieldname]]
Url Imports valid urls, e.g. moodle.org, www.substantialmethods.com.

Applicable patterns:

  • [[fieldname]]