<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Database_activity_FAQ</id>
	<title>Database activity FAQ - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Database_activity_FAQ"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Database_activity_FAQ&amp;action=history"/>
	<updated>2026-05-06T19:36:54Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Database_activity_FAQ&amp;diff=3241&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Database_activity_FAQ&amp;diff=3241&amp;oldid=prev"/>
		<updated>2024-10-18T06:37:31Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:37, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Database_activity_FAQ&amp;diff=3240&amp;oldid=prev</id>
		<title>1&gt;Tsala: Text replacement - &quot;Remote RSS feeds&quot; to &quot;RSS feeds&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Database_activity_FAQ&amp;diff=3240&amp;oldid=prev"/>
		<updated>2024-07-31T10:51:02Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;Remote RSS feeds&amp;quot; to &amp;quot;RSS feeds&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Database}}&lt;br /&gt;
==Where can I download additional database presets?==&lt;br /&gt;
&lt;br /&gt;
See the Presets and See also sections in [[Building Database]] for various places with presets for download.&lt;br /&gt;
&lt;br /&gt;
==How can I add to the list of database presets available for users to choose from?==&lt;br /&gt;
&lt;br /&gt;
It is possible to create your own presets. &lt;br /&gt;
&lt;br /&gt;
When you have created your database that you desire to set as a preset; go to the &amp;quot;Presets&amp;quot; tab of the database and choose &amp;quot;Save as preset&amp;quot;. Give the preset a name and the database fields and templates will now be available as a preset for the rest of the site. You will need site admin rights to do this.&lt;br /&gt;
&lt;br /&gt;
Please see the [[Database presets]] for other available presets you can import into your system.&lt;br /&gt;
&lt;br /&gt;
==How can I create a database in which students can only view their own entries?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
*Set up the database so that entries require approval. If the entries are never approved, then only the student that added a particular entry and the teachers can view it.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
*Set the group mode of the database to &amp;quot;Separate groups&amp;quot; and assign each student to a separate group.&lt;br /&gt;
&lt;br /&gt;
==How can I enable a sort function by clicking on the field headings?==&lt;br /&gt;
&lt;br /&gt;
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,&lt;br /&gt;
&lt;br /&gt;
http://moodle.org/mod/data/view.php?d=13&amp;amp;sort=44&amp;amp;order=ASC&lt;br /&gt;
&lt;br /&gt;
http://moodle.org/mod/data/view.php?d=13&amp;amp;sort=44&amp;amp;order=DESC&lt;br /&gt;
&lt;br /&gt;
==How can I list database information horizontally instead of vertically?==&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74243 How can I list database information horizontally instead of vertically? Forum discussion]&lt;br /&gt;
&lt;br /&gt;
==Can&amp;#039;t get columns to line up in list view==&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=84050 Can&amp;#039;t get columns to line up in list view forum discussion] including moodle.org presets for download&lt;br /&gt;
&lt;br /&gt;
==How can I make an Encyclopedia database preset?==&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=87560 Encyclopedia database preset forum discussion] including encyclopedia-style preset for download&lt;br /&gt;
&lt;br /&gt;
==Is there a Time stamp for database entries?==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;##timeadded##&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How can I make the title of an entry into a link?==&lt;br /&gt;
&lt;br /&gt;
To make the title of an entry in list view link to the single view, add the following code to the list template:&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;a href=&amp;quot;##moreurl##&amp;quot;&amp;gt;[[Title]]&amp;lt;/a&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How can I hide a database entry which was previously approved?==&lt;br /&gt;
&lt;br /&gt;
Edit the list and or single template and add the undo approval tag (##disapprove##).&lt;br /&gt;
&lt;br /&gt;
==How can I add a default sort order of entries?==&lt;br /&gt;
&lt;br /&gt;
In the Fields tab, select a default sort field, choose ascending or descending then click the Save button.&lt;br /&gt;
&lt;br /&gt;
==Why is my database so slow to show each page?==&lt;br /&gt;
&lt;br /&gt;
Try to go to &amp;quot;Administration &amp;gt; Miscellaneous &amp;gt; XMLDB editor&amp;quot; and choose &amp;quot;Check Indexes&amp;quot;. 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.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent students from adding entries?==&lt;br /&gt;
&lt;br /&gt;
An override may be used to close/archive a database activity, or have a database in which only teachers can add entries, but students can view the entries.&lt;br /&gt;
&lt;br /&gt;
# Follow the Permissions link in the settings block under Database activity administration&lt;br /&gt;
# Remove Student from the capability [[Capabilities/mod/data:writeentry|mod/data:writeentry]] by clicking the &amp;#039;X&amp;#039; next to it.&lt;br /&gt;
# Click the continue button to confirm.&lt;br /&gt;
&lt;br /&gt;
==How can I empty a database / remove records from a database en masse?==&lt;br /&gt;
In List view, there is a checkbox next to each entry. Click to select the ones you wish to delete and then click the &amp;#039;Delete selected&amp;#039; button. Alternatively, click the &amp;#039;Select all&amp;#039; and &amp;#039;Delete all&amp;#039; buttons. A warning message will appear asking you to confirm what you wish to delete.&lt;br /&gt;
&lt;br /&gt;
==I get an error message when importing a csv of entries==&lt;br /&gt;
One thing to try is to open up the csv file in Excel and save it again as a csv file - with another name - and then try importing it agin. Sometimes this just works :)&lt;br /&gt;
&lt;br /&gt;
==How do I export/import picture fields from a database activity from one course to another?==&lt;br /&gt;
You cannot export/import database entries with picture fields using the csv option, you will need to use Moodle&amp;#039;s backup and restore functionality. Please note that you will need to backup and restore the database activity with user data in order for the entries to be carried over.&lt;br /&gt;
&lt;br /&gt;
==How can I show recently added entries in a block on the course page?==&lt;br /&gt;
&lt;br /&gt;
# Enable an RSS feed of recently added entries as described in [[Using Database]]&lt;br /&gt;
# Add a [[RSS feeds block]] to the course page&lt;br /&gt;
# Add the database activity RSS feed to it&lt;br /&gt;
&lt;br /&gt;
==How can I have entries waiting for approval highlighted?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 3.0 onwards, any newly created database activities show entries waiting for approval as highlighted for the teacher and the user who added the entry. &lt;br /&gt;
&lt;br /&gt;
For existing database activities, the highlighting can be added by editing the list and/or single template and resetting it, or adding some inline css:&lt;br /&gt;
&lt;br /&gt;
 class=&amp;quot;mod-data-default-template ##approvalstatus##&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Any further questions?==&lt;br /&gt;
&lt;br /&gt;
Please post in the [https://moodle.org/mod/forum/view.php?id=3505 Database forum] on moodle.org&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
Forum discussions:&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=324452 Glossary autolink within a database activity]&lt;br /&gt;
*[https://moodle.org/mod/forum/discuss.php?d=393775 Downloading Database Entries]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank FAQ]]&lt;br /&gt;
[[es:Actividad BasedeDatos FAQ]]&lt;br /&gt;
[[fr:FAQ sur la base de données]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tsala</name></author>
	</entry>
</feed>