Diferencia entre revisiones de «Modulo actividad base de datos FAQ»

De MoodleDocs
Sin resumen de edición
Sin resumen de edición
Línea 1: Línea 1:
== Aviso sobre el FAQ del módulo de actividad Base de datos ==
== Aviso sobre el FAQ del módulo de actividad Base de datos ==
''Este artículo se encuentra en traducción''
''Este artículo se encuentra en traducción''
Línea 8: Línea 6:
== ¿En dónde puedo descargar preconfiguraciones de bases de datos adicionales? ==
== ¿En dónde puedo descargar preconfiguraciones de bases de datos adicionales? ==
Vea Database presets [https://docs.moodle.org/en/Database_presets] para vínculos de la discusión con preconfiguraciones para descarga.
Vea Database presets [https://docs.moodle.org/en/Database_presets] para vínculos de la discusión con preconfiguraciones para descarga.
==¿Cómo puedo crear una base de datos en la que los estudiantes solo vean sus propias entradas?==
Either:
*Configure la base de datos para las entradas requieran aprobación (require approval). Mientras las entradas no sean aprobadas, entonces sólo el estudiante que agregó una entrada en particualr y los profesores, pueden verla.
O:
*Configure el modo de grupos de la base de datos a "Grupos separados" (Separate groups) y asigne cada estudiante a un grupo separado.
==How can I enable a sort function by clicking on the field headings?==
For sorting, you need to manually create the link in the template around that heading.  To find the URL you need, you can do a sort using the menus and then look in the URLs. Take out everything but the d, sort and order parameters. For example,
http://moodle.org/mod/data/view.php?d=13&sort=44&order=ASC
http://moodle.org/mod/data/view.php?d=13&sort=44&order=DESC
==How can I add highlighting like on the Module and plugins page?==
In the repeated part of the template (note onmouseover and onmouseout to change the classes):
<pre><tr onmouseover="this.className='trhighlight'" onmouseout="this.className='trnormal'">
<td class="c0"><b><a href="##MoreURL##">[[Name]]</a></b></td>
<td class="c1">[[Type]]</td>
<td class="c2">[[Requirement]]</td>
<td class="c3">[[Status]]</td>
<td class="c4">[[Summary]]</td>
<td align="center" class="c5">##Edit##&nbsp;##Delete##&nbsp;##More##&nbsp;##Approve## </td>
</tr></pre>
In the CSS template there are two styles:
<pre>.trnormal td {
  background-color: #FFFFFF;
}
.trhighlight td {
  background-color: #EEEEEE;
}</pre>
==How can I list database information horizontally instead of vertically?==
*[http://moodle.org/mod/forum/discuss.php?d=74243 How can I list database information horizontally instead of vertically? Forum discussion]
==Can't get columns to line up in list view==
*[http://moodle.org/mod/forum/discuss.php?d=84050 Can't get columns to line up in list view forum discussion] including moodle.org presets for download
==How can I make an Encyclopedia database preset?==
*[http://moodle.org/mod/forum/discuss.php?d=87560 Encyclopedia database preset forum discussion] including encyclopedia-style preset for download
==Is there a Time stamp for database entries?==
*[http://moodle.org/mod/forum/discuss.php?d=86927 Time stamp for database entries forum discussion]
==How can I make the title of an entry into a link?==
To make the title of an entry in list view link to the single view, add the following code to the list template:
<nowiki><a href="##moreurl##">[[Title]]</a></nowiki>
==How can I make email addresses clickable?==
To make email addresses clickable, add the following code to the single template:
<nowiki><a href="mailto:[[Email]]">[[Email]]</a></nowiki>
where 'Email' is the text field for inputting email addresses.
==How can I delete a file attached to a database entry?==
There is currently no user interface for deleting a file attached to a database entry, however a workaround would be to delete the entry completely and then create a new entry without the file attached.
==How can I hide a database entry which was previously approved?==
There is currently no user interface for hiding a database entry which was previously approved i.e. setting it to require approval again. However, an entry can be hidden using [[MySQL Admin]] by editing it in the ''data_records'' table and changing the approved value from 1 to 0.
==How can I add a default sort order of entries?==
In the Fields tab, select a default sort field, choose ascending or descending then click the Save button.
==Why is my database so slow to show each page?==
Try to go to "Administration > Miscellaneous > XMLDB editor" and choose "Check Indexes". If you have any missing indexes found; upgrade your Moodle to the latest weekly build of your version; re-run the test; backup your site database and then run the suggested SQL from the test on your site database. This should speed up your database activity load times.
==See also==
Using Moodle forum discussions:
*[http://moodle.org/mod/forum/discuss.php?d=87005 New preset, please review, and make suggestions!] including FAQ preset for download
*[http://moodle.org/mod/forum/discuss.php?d=88727 Design a Database Preset for Document Sharing] including preset for download
*[http://moodle.org/mod/forum/discuss.php?d=55338 Look of the database module]
*[http://moodle.org/mod/forum/discuss.php?d=61179 For those who want the display of Moodle Site's Modules and plugins]
*[http://moodle.org/mod/forum/discuss.php?d=94854#p457252 Looking for some stellar examples of Moodle courses] including book reviews preset for download
[[Category:FAQ]]
[[en:Database activity module FAQ]]
[[de:Datenbank FAQ]]

Revisión del 03:43 7 abr 2011

Aviso sobre el FAQ del módulo de actividad Base de datos

Este artículo se encuentra en traducción Puede consultar el original en ingles: Database activity module FAQ[1]


¿En dónde puedo descargar preconfiguraciones de bases de datos adicionales?

Vea Database presets [2] para vínculos de la discusión con preconfiguraciones para descarga.

¿Cómo puedo crear una base de datos en la que los estudiantes solo vean sus propias entradas?

Either:

  • Configure la base de datos para las entradas requieran aprobación (require approval). Mientras las entradas no sean aprobadas, entonces sólo el estudiante que agregó una entrada en particualr y los profesores, pueden verla.

O:

  • Configure el modo de grupos de la base de datos a "Grupos separados" (Separate groups) y asigne cada estudiante a un grupo separado.

How can I enable a sort function by clicking on the field headings?

For sorting, you need to manually create the link in the template around that heading. To find the URL you need, you can do a sort using the menus and then look in the URLs. Take out everything but the d, sort and order parameters. For example,

http://moodle.org/mod/data/view.php?d=13&sort=44&order=ASC

http://moodle.org/mod/data/view.php?d=13&sort=44&order=DESC

How can I add highlighting like on the Module and plugins page?

In the repeated part of the template (note onmouseover and onmouseout to change the classes):

<tr onmouseover="this.className='trhighlight'" onmouseout="this.className='trnormal'">
 <td class="c0"><b><a href="##MoreURL##">[[Name]]</a></b></td>
 <td class="c1">[[Type]]</td>
 <td class="c2">[[Requirement]]</td>
 <td class="c3">[[Status]]</td>
 <td class="c4">[[Summary]]</td>
 <td align="center" class="c5">##Edit## ##Delete## ##More## ##Approve## </td>
</tr>

In the CSS template there are two styles:

.trnormal td {
   background-color: #FFFFFF;
 }
 .trhighlight td {
   background-color: #EEEEEE;
 }

How can I list database information horizontally instead of vertically?

Can't get columns to line up in list view

How can I make an Encyclopedia database preset?

Is there a Time stamp for database entries?

How can I make the title of an entry into a link?

To make the title of an entry in list view link to the single view, add the following code to the list template:

<a href="##moreurl##">[[Title]]</a>

How can I make email addresses clickable?

To make email addresses clickable, add the following code to the single template:

<a href="mailto:[[Email]]">[[Email]]</a>

where 'Email' is the text field for inputting email addresses.

How can I delete a file attached to a database entry?

There is currently no user interface for deleting a file attached to a database entry, however a workaround would be to delete the entry completely and then create a new entry without the file attached.

How can I hide a database entry which was previously approved?

There is currently no user interface for hiding a database entry which was previously approved i.e. setting it to require approval again. However, an entry can be hidden using MySQL Admin by editing it in the data_records table and changing the approved value from 1 to 0.

How can I add a default sort order of entries?

In the Fields tab, select a default sort field, choose ascending or descending then click the Save button.

Why is my database so slow to show each page?

Try to go to "Administration > Miscellaneous > XMLDB editor" and choose "Check Indexes". If you have any missing indexes found; upgrade your Moodle to the latest weekly build of your version; re-run the test; backup your site database and then run the suggested SQL from the test on your site database. This should speed up your database activity load times.

See also

Using Moodle forum discussions: