Databank velden

Uit MoodleDocs
Ga naar:navigatie, zoeken

Een veld is a benoemde eenheid informatie. Elk item in een databank kan meerdere velde van verschillende types bevatten, bijv. een tekst veld genaamd 'favoriete kleur' waarin je dan je favoriete kleur kan intikken. Door deze velden te combineren kan je een lijst met velden krijgen die je gegevens beschrijven, zodat jij je gegevens in de databank kan invoeren.


Veldnaam en beschrijving

Alle velden vragen een naam en een beschrijving als je ze aanmaakt. Veldnamen moeten uniek, kort en duidelijk zijn.


Veldtypes

Keuzevakjes

Laat toe om één of meerdere keuzevakjes toete voegen. Elke lijn in het 'opties' vak komt overeen met een keuzevakje. De tekst die de databank bewaart is de tekst die hoort bij de optie naast het keuzevakje. Deze tekst verschijnt in de lijst- en itemweergave enkel als de optie geselecteerd was. Opties die niet gekozen zijn, verschijnen enkel in het toevoegscherm. Als je wil vermijden dat een gebruiker meer dan één optie invoert, dan kan je beter kiezen voor het veldtype "keuzeknoppen"

Meerdere keuzevakjes zou je kunnen gebruiken wanneer je bijvoorbeeld een lijst aan zou leggen met bloemen en dan de maanden van het jaar als keuzevakjes erbij zet. Zo kan je eenvoudig aanduiden in welke maanden de bloemen bloeien.

Datum

Zo kan je een datum laten invoeren door uit een vervolgkeuzelijst een dag, maand en jaar te laten kiezen.


Bestand

Laat de gebruikers een bestand uploaden vanop hun computer. Als het een afbeelding is, dan kies je misschien beter voor een afbeelding veld.

Menu (Enkele selectie)

De tekst die je in het opties gebied invult, zal aan de gebruiker getoond worden als een drop-down lijstje. Elke lijst wordt een andere optie.

Menu (Meerdere selecties)

The text entered in the options area will be presented as a list for the user to choose from and each line become a different option. By holding down control or shift as they click, users will be able to select multiple options. This is a fairly advanced computer skill so it may be wise to use multiple checkboxes instead.

Number

Stores a floating number. Examples:

  • -1000
  • 0
  • 0.123

Picture

The user can upload an image file from their computer.

Radio buttons

Allows the user to choose one from a range of options. If the user doesn't select any of these options then they will be prompted to do so and can only submit the entry when one option is chosen.

If you only have two options and they are opposites (true/false, yes/no) then you could simply use a single checkbox instead. However checkboxes default to their unchecked status and so people could submit without actively selecting one of the options. This may not always be appropriate.

Text

Users can enter text up to 60 characters in length. For longer text, or for text that requires formatting such as headers and bullet points, you can use a textarea field.

Textarea

Allows users to enter a long piece of text including formatting similar to that found when creating forum posts. Max number of characters in text area = ?

URL

Ask the user to enter a URL. If you select autolink then the URL becomes a clickable link. If you also enter a forced name for the link then that text will be used for the hyperlink. For example in a database of authors you may wish people to enter the author's website. If you enter the text 'homepage' as a forced name then clicking on text "homepage" will take you to the entered URL.

Latitude/longitude

Users can enter a geographic location, by specifying the location's latitude and longitude. For example, Moodle HQ is at latitude -31.9545, longitude 115.877. When viewing the record, links are automatically generated linking to geographic data services such as Google Earth, OpenStreetMap, GeaBios,Mapstars and more. (The teacher can choose which of those links appear, if any.)