Expression QGIS

As in QGIS Desktop, Lizmap can use QGIS expression .

Au niveau du projet

Au niveau du projet, Lizmap définira deux variables dans le serveur QGIS :

  • @lizmap_user : string, the current user connected in Lizmap. It might be empty.
  • @lizmap_user_groups : array, the current user groups as a list. It might be empty.

Note

It’s possible use these variables in a symbology for instance, to set a different color for a given user, or to print the current Lizmap user in a layout.

Formulaires avancés

For editing, it’s possible to use expressions for constraints, default value, group visibility. Read Formulaire avancé.

Mises en page

Il est possible d’utiliser des expressions dans les mises en page, pour les dates, chemin d’un média de Lizmap.

In a layout, the expression map_credits or more complex expressions are useful.