Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Dataform Import.

Dataform Import: Difference between revisions

From MoodleDocs
(Created page with "{{Dataform}}")
 
No edit summary
 
Line 1: Line 1:
{{Dataform}}
{{Dataform}}
You can import entries into the Dataform from entries data in CSV format. CSV means Comma-Separated-Values and is a common format for text interchange.
[[Image:df-view-import.png]]
The expected file format is a plain text file with a list of field names as the first record. The data then follows, one record per line.
The field delimiter defaults to a comma character and the field enclosure is not set by default (field enclosures are characters that surround each field in each record).
The CSV records should be delimited by new lines (usually generated by pressing RETURN or ENTER in your text editor). Tabs can be specified using \t and newlines by \n.
Sample file:
  name,height,weight
  Kai,180cm,80kg
  Kim,170cm,60kg
  Koo,190cm,20kg
Note: Certain field types may not be supported.
Do not put spaces after your commas or upload will fail!

Latest revision as of 12:58, 18 October 2012

You can import entries into the Dataform from entries data in CSV format. CSV means Comma-Separated-Values and is a common format for text interchange.

File:df-view-import.png

The expected file format is a plain text file with a list of field names as the first record. The data then follows, one record per line.

The field delimiter defaults to a comma character and the field enclosure is not set by default (field enclosures are characters that surround each field in each record).

The CSV records should be delimited by new lines (usually generated by pressing RETURN or ENTER in your text editor). Tabs can be specified using \t and newlines by \n.

Sample file:

 name,height,weight
 Kai,180cm,80kg
 Kim,170cm,60kg
 Koo,190cm,20kg

Note: Certain field types may not be supported.

Do not put spaces after your commas or upload will fail!