Dataform

Activities ::: mod_dataform
Maintained by Itamar Tzadok
Part of set Dataform.
The Dataform module allows the course manager to design and construct an entry form from various input elements (text and rich text fields, urls, files, pictures, etc.) in a flexible layout. Users can then add information records to a collection, which can be viewed in various ways and searched for particular items.
Latest release:
769 sites
137 downloads
64 fans
Current versions available: 7

The dataform module is a major enhancement of the standard Database activity module and is meant to offer all the functionality offered by the Database module and much more in a more flexible way.

The module allows the course manager to design and construct an entry form from various input elements (text and rich text fields, urls, files, pictures, etc.) in a flexible layout. Users can then add information records to a collection, which can be viewed in various ways and searched for particular items.

The dataform features include (among other things):

  • A multiple views system - allows the instructor to design several different views of the entries in a datform activity. Each view can show a designated subset of the entries in a designated layout.
  • Enhanced template tags - A new template tags system allows for exposing many more bits of information and makes it easy to add designated patterns in new field and view types.
  • Enhanced entry actions - Bulk edit, duplicate, delete, approve etc. Inline editing. Form editing options such as required fields (via Moodle forms).
  • New packaging system - based on Moodle backup/restore and allows for packaing a dataform instance and restoring into an existing instance.
  • Enhanced filtering system - allows the instructor to define different filters each of which can determine sort (including nested sort) and search options (various search criteria). Filters can be fixed to particular views or applied on the file from the activity main page (if included in the view template).

New view/field types include (among others):

  • Tabular view - a view type which allows for displaying the entries in a table. The design of the entries table has been simplified to drawing the desired table with optional header row and an entry row in the moodle editor.
  • Nanogong field - a field type for adding audio content to an entry via the nanogong applet.
  • Calculated field - a field type which can display a result of a simple calculation on one or two number fields in the entry.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

Itamar Tzadok (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Just wondering . . .
    Wed, 23 Apr 2014, 9:44 AM
    I've never used the database activity much, since it seems reasonably complex to set up well. If I then create things for tutors, it often leads to a maintenance problem for me. smile I also have the problem that if I train person A and they could be replaced with person B who has a completely different attitude to Moodle.

    Is dataform "easy" to use? I have had a look at the documentation. Is there a demo site somewhere?

    With regards, Derek

  • Itamar Tzadok
    Wed, 23 Apr 2014, 10:35 AM
    First tutorials should be ready sometime next week. There will also be a repository of presets which will allow setting up a Dataform activity in a click of a button. I'll publish when ready. With that the Dataform should be reasonably "easy" to use. The quotes have to remain because the possibility to do many things in so many ways never makes things easy. But I'm committed to this project and will try to make it as easy as possible. smile
  • Mario Wehr
    Sat, 3 May 2014, 3:51 AM
    Hi Itamar,

    Thanks for this great module.
    I just encountered a slight mistake in the backup part in "backup_dataform_stepslib.php"
    A quick fix would be:
    #139
    - $pluginclass = $plugintype. "_$type";
    - require_once("$path/$type.php");

    + $pluginclass = $plugintype. "_$type". "_$type";
    + require_once("$path/classes/$type.php");

    regards

    Mario
  • Itamar Tzadok
    Sat, 3 May 2014, 5:02 AM
    Much appreciated!!! Will be fixed for the next mini release this weekend. Please report any further issues and suggested solutions in the tracker (https://tracker.moodle.org/browse/CONTRIB/component/13430) so that they could be tracked properly and listed in the release notes. smile
  • Amanda Overton
    Tue, 19 Aug 2014, 10:26 PM
    Hi, I'd really like to give this a try but our Moodle is 2.5 and the link given in the comments above seems to have expired. Can anyone direct me to a version that's 2.5 compatible? Thank you!
  • Itamar Tzadok
    Wed, 20 Aug 2014, 12:12 AM
    Try the version at https://github.com/itamart/moodle-mod_dataform/tree/MOODLE_23_STABLE. Shoud work on Moodle 2.5. Basic functionality such as multiple views and filters should be reasonably stable. smile
  • Amanda Overton
    Wed, 20 Aug 2014, 4:14 PM
    Brilliant, thank you! I'll give it a go smile
  • Sebastien Jaffredo
    Wed, 27 Aug 2014, 7:45 PM
    Hi

    Fantastic tool, I've been fiddling with it for a couple of hours now.

    I'm stuck with a problem though.
    I have a list of entries (tabular view), and I'd like to have a link on each line of that table that would point to a page showing the full entry, and only that one. Can you think of a way to do that ?
    I'm using the 2.3 version in Moodle 2.5

    Thanks for this great plugin and thanks in advance for your answer.

    Cheers,

    Sébastien
  • Yong Ra
    Fri, 5 Sep 2014, 3:16 AM
    I went from 2.5 to 2.7.1 and encountered following error.


    error/ddlunknowntable




    Debug info: The table dataform_rules is not defined in file [dirroot]/mod/dataform/db/install.xml
    Error code: ddlunknowntable
    $a contents:

    Stack trace: •line 390 of /lib/ddl/database_manager.php: ddl_exception thrown
    •line 382 of /mod/dataform/db/upgrade.php: call to database_manager->install_one_table_from_xmldb_file()
    •line 62 of /mod/dataform/db/upgrade.php: call to xmldb_dataform_upgrade_2012092002()
    •line 697 of /lib/upgradelib.php: call to xmldb_dataform_upgrade()
    •line 420 of /lib/upgradelib.php: call to upgrade_plugins_modules()
    •line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
    •line 434 of /admin/index.php: call to upgrade_noncore()


    Can anyone help?
  • Itamar Tzadok
    Fri, 5 Sep 2014, 4:05 AM
    See my reply to your query in the Database activity at https://moodle.org/mod/forum/discuss.php?d=264311#p1155374. smile
  • Miryan salas
    Fri, 24 Oct 2014, 8:42 PM
    Hello,
    I have installed the last version for Moodle 2.3:
    https://github.com/itamart/moodle-mod_dataform/tree/MOODLE_23_STABLE.
    But no error message is shown when field rules do not comply. For example, if a user completes a number field with a character and submit the entry, nothing happens, and the new entry page is reloaded without any error message. This happes for all rules related to form fields.
    Thank you
  • Itamar Tzadok
    Sat, 25 Oct 2014, 1:28 AM
    The rules tab in Dataform 2.3 is only a stub. The implementation of this feature in Dataform 2.3 has never been completed. You will have to upgrade to Dataform 2.6 or higher (requires Moodle 2.6 or higher respectively). smile
  • Miryan salas
    Tue, 28 Oct 2014, 9:59 PM
    mar, 28 de oct de 2014, 21:59
    Hello,
    I found the problem, it was a bug reported by you:
    https://tracker.moodle.org/browse/MDL-36433
    But now, I have another issue trying to import a csv file through the csv view. The problem is that the author id imported is always the id of the user who imports the csv, instead of the id stored in the csv (author:id column). Could you help me please? Thank you
  • Itamar Tzadok
    Tue, 28 Oct 2014, 10:07 PM
    Miryan, let's continue this discussion in the Dataform forum at https://moodle.org/mod/forum/view.php?id=8192. smile
Please login to post comments