This is an old revision of the document!
the configuration of the query and the multiple output options is the most important activity related to tis block setup. It requires:
If you have those prerequisites, you are ready to do a lot of things with the Dashboard block.
Remind here that the Dashboard bloc can access to any data stored into Moodle and thus it's configuration may not be allowed in an uncontrolled way.
there are 6 main steps in setting up a dashboard query:
A Dashboard will NOT be able to answer to any demand. Usually, the addressed question must have an answer that can be synthesized within a single unique Query, giving a single aggregated composite output. As the block post-processes the given SQL to feed the query accessories (such as filters, or params), some complex query forms may be not supported.
In general, any results that comes out from simple JOINS (INNER, OUTER or LEFT) among a set of tables will work fine. Some queries using subqueries may work, Union or intersects may work on simple output, but some accessories may crash the query if activated.
the Dashboard block is designed for administrators being able to setup a query and additional dynamic tools addressed to the dashboard end users. Filters will provide multiple derivated partial views of the same output data. Parameters also will allow to change the initial perimeter of the extracted data, such as date ranges, ou value ranges, providing a lot of possible distinct reports with only one generic query.
Usually a data query will output a set of columns (data fields), which can be classed into the following categories :
Filters usually will be defined upon the contextual dimensions, while parameters may usually affect usefull or technical values.
Vous utiliserez pour cela un client standard de votre base de données. Ce test permet de vérifier que la requête de départ fonctionne correctement et qu'elle produit bien des données cohérentes.
La mise en place de la requête dans le tableau de bord est la première chose à faire réellement dans le tableau de bord.
Le premier onglet est là où vous allez poser la requête.