Another thing you can do with a database if you only find a good enough reason to do it

Another thing you can do with a database if you only find a good enough reason to do it

Höfundur Itamar Tzadok -
Number of replies: 4
This time I'd like to introduce a simple bar-graph poll. The database has one radio field with the choices. It is set to required entries: 1, Entries required before viewing:1, Maximum entries:1, so that the user/student has to vote before viewing the results. The single view is effectively disabled by redirecting the page to the list view. The list view displays a bar-graph of the results. I'd like to make the code just a little bit more generic and then I'll add the preset to Moodle Exchange. In the meantime see image below and comments and suggestions are welcome. bros

Other things you can do with a database if you only find a good enough reason to do them:
Attachment data-bargraphpoll-listview.png
Meðaltal dóma: -
In reply to Itamar Tzadok

Re: Another thing you can do with a database if you only find a good enough reason to do it

Höfundur Paula Clough -

WOW!

Yes, please do share when you're ready... what a great idea! I want to see it so I can play with it and see how it works.

Paula Clough svalur

In reply to Itamar Tzadok

Re: Another thing you can do with a database if you only find a good enough reason to do it

Höfundur Jon Witts -
Mynd af Particularly helpful Moodlers Mynd af Plugin developers Mynd af Testers
I like this a lot! Very cool!
In reply to Itamar Tzadok

Re: Another thing you can do with a database if you only find a good enough reason to do it

Höfundur A. T. Wyatt -
Agreed! This is really nice.

atw
In reply to Itamar Tzadok

Re: Another thing you can do with a database if you only find a good enough reason to do it

Höfundur Carlos Eduardo Angarita Marquez -
Hi,

How do you program the bar-code display? Is using a moodle pluging?