Dataformview CSV: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Dataform | {{Dataform plugin info | ||
|description = | |||
The Dataform CSV view is designed mainly for CSV export/import purposes. The view allows you to predefine the set of Dataform fields to export/import, the desired field content by pattern (e.g. human readable dates, entry author info etc.), the export column order, the import column headings and the target export type (csv, xls, ods). | The Dataform CSV view is designed mainly for CSV export/import purposes. The view allows you to predefine the set of Dataform fields to export/import, the desired field content by pattern (e.g. human readable dates, entry author info etc.), the export column order, the import column headings and the target export type (csv, xls, ods). | ||
You can define different export/import templates (different instances of the csv view) for the same activity and via the view access permissions allow different role/user access to designated export/import views. | You can define different export/import templates (different instances of the csv view) for the same activity and via the view access permissions allow different role/user access to designated export/import views. | ||
|usage = | |||
===Export data to a csv file=== | ===Export data to a csv file=== | ||
*Open view | *Open view | ||
Line 14: | Line 15: | ||
*Click the 'Import' button. | *Click the 'Import' button. | ||
====Import form==== | ====Import form==== | ||
= | |other settings = | ||
===Export/Import settings=== | ===Export/Import settings=== | ||
====Patterns==== | ====Patterns==== | ||
Line 29: | Line 28: | ||
*'''Enclosure''': Select the character that surrounds each field. By default there is no enclosure. | *'''Enclosure''': Select the character that surrounds each field. By default there is no enclosure. | ||
*'''Encoding''': Select a default character encoding. For Import you can override this default in the Import form. | *'''Encoding''': Select a default character encoding. For Import you can override this default in the Import form. | ||
|other patterns = | |||
<nowiki> | <nowiki> | ||
##export:all##: ... | ##export:all##: ... | ||
Line 38: | Line 34: | ||
##import##: ... | ##import##: ... | ||
</nowiki> | </nowiki> | ||
}} |