Advanced QGIS forms into the web with Lizmap
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Formal Metadata
Title |
| |
Title of Series | ||
Number of Parts | 351 | |
Author | ||
License | CC Attribution 3.0 Unported: You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor. | |
Identifiers | 10.5446/69047 (DOI) | |
Publisher | ||
Release Date | ||
Language | ||
Production Year | 2022 |
Content Metadata
Subject Area | ||
Genre | ||
Abstract |
| |
Keywords |
00:00
CAN busWeb 2.0Multiplication signConfiguration spaceLevel (video gaming)
00:24
Web pageDrop (liquid)Drag (physics)Online helpField (computer science)InformationGUI widgetGroup actionFinitary relationElectronic visual displayRepresentation (politics)AliasingDigital photographyLoginData typeForm (programming)MathematicsOrder (biology)CuboidGroup actionField (computer science)Self-organizationLevel (video gaming)Drop (liquid)Drag (physics)AliasingProcess (computing)Computer animation
01:16
Online helpDrag (physics)Drop (liquid)Finitary relationGUI widgetDigital photographyRegulärer Ausdruck <Textverarbeitung>Control theoryLoginInformationLocal GroupControl theorySoftware testingExpressionCuboidResultantComputer animation
01:32
Annulus (mathematics)DigitizingWell-formed formulaInformationDigital filterAliasingDigital photographyData storage deviceElectronic visual displayGUI widgetAbsolute valueAsynchronous Transfer ModeDefault (computer science)Extension (kinesiology)EstimationDrop (liquid)Drag (physics)Field (computer science)Finitary relationGroup actionLoginLine (geometry)Computer-generated imageryElectronic visual displaySelectivity (electronic)Extension (kinesiology)GUI widgetLevel (video gaming)Type theoryDigital photographyMedical imagingField (computer science)SoftwareComputer fileXMLProgram flowchartComputer animation
02:23
InformationConstraint (mathematics)Default (computer science)GUI widgetData typeRegulärer Ausdruck <Textverarbeitung>Uniqueness quantificationLoginVariable (mathematics)Electronic visual displayAliasingFinitary relationOrder (biology)NumberDrop (liquid)Drag (physics)Group actionDigital photographyLoginDrag (physics)Electronic mailing listGroup actionMereologyVariable (mathematics)Field (computer science)Form (programming)ExpressionDrop (liquid)Theory of relativityLevel (video gaming)Source codeXMLComputer animation
03:08
InformationElectronic mailing listRow (database)Sheaf (mathematics)Order (biology)CASE <Informatik>View (database)Query languageSelectivity (electronic)XMLProgram flowchart
03:47
Personal digital assistantOrder (biology)LoginMiniDiscDemo (music)NumberDigital filterOnline helpGUI widgetElectronic visual displayDrag (physics)Drop (liquid)InformationFinitary relationDigital photographyAliasingData typeAttribute grammarForm (programming)Row (database)TableauExpressionDemo (music)Electronic mailing listSpeciesAttribute grammarVariable (mathematics)Computer animation
Transcript: English(auto-generated)
00:01
Hi, I'm Nicolas from Trace Company and I'm going to show you some tips to make advanced forms in QGIS which will be easy for users to be filled. I also will show you those forms in the web thanks to Lizmap. We have no more configuration most of the time. This way you get more participation and less mistake in your data.
00:26
First we have the QGIS drag and drop designer. We can decide which fields needs to be filled, change the fields order, create tabs and group boxes. Let's say we create a form for a processing campaign but also for logged in users in Lizmap
00:47
like people in our organization. This form may have many fields but many of them are not monetary so we don't want to show them all because when form seems too long to fill some users might give up and close it.
01:01
To avoid that here we create a boolean field called as details with add details as an alias to have a more understandable title and define it as a check box. We also create a details tab configured with a control visibility by expression to only
01:24
display it when the as details check box is checked. Here is the result. As you can see... It's better, thank you.
01:41
As you can see details tab is only visible when add details is checked. Now we want people to upload photos so we create fields defined with an attachment widget type and we have a filter to only display GPMG and PNG files.
02:03
You can see in Lizmap only files with defined extensions are displayed when selecting them. After file selection you can also rotate or crop images. It is way more convenient than to have to install a software for that.
02:24
I missed that, sorry. Now when contributors are logged in Lizmap we can use a user login or user groups in forms expression thanks to expression variables.
02:43
Here we create an invisible login field. It is invisible. We don't put it with the drag and drop designer on the middle part. And it will be filled automatically with the user login when the form will be saved.
03:01
The value relation is very convenient to display a list of value from another layer. But sometimes the list can be very long. In this example we display scientific names for amphibians and reptiles in France. So to this section we could, for example, suggest the last previous record on top of
03:21
the list for logged in users. For that we create a layer from view with this SQL query. It is a union order with the last previous record for logged in users. It could be also the two or three or more records but in this case it is just the
03:42
last and the whole list of animals. In red the attribute table shows us the last record for Alice, Bob and demo users. The rest is the whole list of animals.
04:07
Okay, so to only get the previous record for the logged in users in Lizmap we use this filter expression which uses again the Lizmap user expression variable. And as you can see now when a logged in user saves a form is then added on top of
04:22
the scientific name list the last species suggested. We come now, save. When the form is open again, a new form, you have here the last previous record.
04:40
Finished.