Searching the database module??

Searching the database module??

by Peter Ho -
Number of replies: 12
Hi,

I have been searching for a database module/activity that can be used to create a questionnaire, whereby the data is subsequently stored in a database that can then be searchable by anyone that has access to this course.

I've downloaded the data module from:

http://moodle.org/file.php/5/moddata/forum/587/108640/data_020505.zip

This module allows me to do the first two, but does not seem to have a search option.

Is this module the same module that will appear in moodle 1.6? From the page of the description of the database module, it is suppose to be searchable. (http://moodle.org/mod/data/view.php?d=13&rid=22)

I have also tried using the questionnaire module. Like the database module I downloaded, there is no search option.

Is there a newer version of the database module that allows someone to search the database, based on a selected search field?

Are there any other alternatives?

Peter



Average of ratings: -
In reply to Peter Ho

Re: Searching the database module??

by Yu Zhang -
Hi,

I think that is not the data module in 1.6. The data module in 1.6 supports simultaneous sorting and searching. It should also work fine with 1.5.

Cheers,

Yu
In reply to Yu Zhang

Re: Searching the database module??

by Peter Ho -
Yu,

I thought the same. Do you know where I can find the data module for moodle 1.6? Will it work in moodle 1.5.3+?


Peter
In reply to Peter Ho

Re: Searching the database module??

by Dan Stowell -
The data module is built-in to Moodle 1.6 - it is not a separate download. I don't actually know if it will work in 1.5.3+ but I would not risk it - it is being developed only with 1.6 in mind!
In reply to Dan Stowell

Re: Searching the database module??

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Actually, no, we've written it explicitly to work on 1.5.3+ as well. smile eg see http://moodle.org/buzz

There will be a 1.5.4 release soon, that's what I'd recommend.
In reply to Martin Dougiamas

Re: Searching the database module??

by Athail Pulino -
Hi, folks!

Entering 1.5.4 in the Search foruns I found about 10 references to this version of Moodle. Where can I find Moodle 1.5.4? Was it already released?
I really need to install the Database module and, following what I found in the forum topics I did not installed this module on my 1.5.3 version.

Thanks in advance.

Athail Pulino
http://aprender.unb.br


In reply to Peter Ho

Re: Searching the database module??

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The page you linked to:

http://moodle.org/mod/data/view.php?d=13&rid=22

*is* actually the database module in action. wink

I've added a direct download link there.
In reply to Martin Dougiamas

Re: Searching the database module??

by Peter Ho -
Hi Martin,

Thanks. I've downloaded it and will try it on moodle 1.5.3+


Cheers

Peter

In reply to Peter Ho

Re: Searching the database module??

by Peter Ho -
Hi,

The module seems to work in 1.5.3+, except that fields are shown as:

[fieldname]]typefielddescriptionaction

The data module is also named as : modulename.

I' m not sure what went wrong here, I removed the previously installed data module and replaced it with the new one.

Can someone explain how I can add check boxes and radio buttons?? The "usual" separation method "|" did not work.

Peter






In reply to Peter Ho

Re: Searching the database module??

by Just H -
Hi Peter

The type etc. is due to the language file being missing. Chances are you'll find a language file in the data module folder someplace, try dropping that file into the normal language folder.

Check boxes and radio buttons should be a field type option when you are setting up a new database.

H
In reply to Just H

Re: Searching the database module??

by Peter Ho -
HI H,

Unfortunately, there was no language folder.

With regard to the check boxes and radio buttons, I tried using the same format for differentiating  the field type options (|) but that did not work.

I guess when moodle 1.5.4 or 1.6 is ready all will be working fine.

At present, there is no documentation or help.

Thanks

Peter


In reply to Peter Ho

Re: Searching the database module??

by Keijo Heinström -
Hi Peter

You should download the Moodle 1.6 Beta package (Latest Development Nightly). There is a language file in lang/en_utf8/data.php for the database module.

Keijo