/mathdox/adaptive/index.mathdox Start page for adaptivity The variables for user ${mathdox_user} are:
Variable name Value New Value
update
Tutorial
Logging in The user should first log in. This can be done by adding !login to a page. To log in using authentication from the SQL database change the property org.mathdox.authentication.url. The username (login) is also made available in the variable $mathdox_user. For this page it is: . Showing a please log in message It is possible to ask the user to log in first with the following code: Please log in. Welcome $${mathdox_user}, ... ]]>
Variables If the system knows the login of the user it will search the database for the variables for that user. They will be stored in $mathdox_adaptive. NOTE: at the moment this is only added to pages in /mathdox/adaptive The variable looks as follows: Selecting a single variable The following code gives an example of how to get the value of a variable for a single user. It will not display anything if the user has not logged in yet. This code is also included below.
Changing a variable There is a page that updates a value in the database. It can be called by pressing a button (or by another xforms action). This works in two parts. Add a model to the correct interaction and a button to the feedback. NOTE: adding the model to two interactions is not supported. The full interaction now becomes: test1 1 /mathdox/adaptive/index.mathdox That is correct! update ]]> The full example can also be found as ex1.mathdox.