[Lizmap] R: R: R: Lizmap Server Plugin

Ludovico Frate ludovicofrate at hotmail.it
Tue Mar 12 06:38:39 PDT 2024


Still not working with now() used as default value.

________________________________
Da: Lizmap <lizmap-bounces at lists.osgeo.org> per conto di René-Luc Dhont via Lizmap <lizmap at lists.osgeo.org>
Inviato: martedì 12 marzo 2024 13:08
A: lizmap at lists.osgeo.org <lizmap at lists.osgeo.org>
Oggetto: Re: [Lizmap] R: R: Lizmap Server Plugin

Hi,

Instead of `$id` which could mean nothing for server, have you try `now()` or something else based on `now()` or a project variable ?

René-Luc

Le 12/03/2024 à 12:42, Ludovico Frate via Lizmap a écrit :

Hi, I'm testing by inserting a new value.

________________________________
Da: Lizmap <lizmap-bounces at lists.osgeo.org><mailto:lizmap-bounces at lists.osgeo.org> per conto di Ulisse Cavallini via Lizmap <lizmap at lists.osgeo.org><mailto:lizmap at lists.osgeo.org>
Inviato: martedì 12 marzo 2024 12:34
A: lizmap at lists.osgeo.org<mailto:lizmap at lists.osgeo.org> <lizmap at lists.osgeo.org><mailto:lizmap at lists.osgeo.org>
Oggetto: Re: [Lizmap] R: Lizmap Server Plugin


Hi!

Are you testing this with an update on a saved feature, or with an insert?

As far as I know, default values in Lizmap currently work only when inserting a new feature. They are not taken into account when updating an existing one.



On 3/12/24 12:27, Ludovico Frate via Lizmap wrote:
UPDATE: I've upgraded the Lizmap version to 3.5.13, and now I can see the plugin correctly installed.. However, even if I use a simple expression in the form widget as the default value (for example $id), it is not recognized by Lizmap.

[cid:98feb115-ce9c-4f69-9a66-409824404dbb]
________________________________
Da: Ludovico Frate <ludovicofrate at hotmail.it><mailto:ludovicofrate at hotmail.it>
Inviato: lunedì 11 marzo 2024 21:34
A: lizmap at lists.osgeo.org<mailto:lizmap at lists.osgeo.org> <lizmap at lists.osgeo.org><mailto:lizmap at lists.osgeo.org>
Oggetto: Lizmap Server Plugin


Hi, I have an old installation of Lizmap (v. 3.4.7) on an Ubuntu server with QGIS Server 3.16. I managed my project with QGIS 3.16 and everything works fine. In order to use default values in the widget form, I manually installed the Lizmap server plugin, but it seems not to be working. Default values used in the widget do not appear in editing mode.

I installed the plugin in the /usr/share/qgis/python/plugins directory and I've set the permissions to www-data:www-data for the Lizmap_server folder. I've also defined the environmental variable in the qgis-server configuration file. I've already installed the wfsOutputExtension in the same way without any problems (the plugin works fine). Any ideas?



_______________________________________________
Lizmap mailing list
Lizmap at lists.osgeo.org<mailto:Lizmap at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/lizmap


--
Ulisse Cavallini
www.faunalia.eu<http://www.faunalia.eu>
Training, support, development on QGIS, PostGIS and more



_______________________________________________
Lizmap mailing list
Lizmap at lists.osgeo.org<mailto:Lizmap at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/lizmap


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240312/9e0f3e19/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1gvhdcnd.gif
Type: image/gif
Size: 42 bytes
Desc: Outlook-1gvhdcnd.gif
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240312/9e0f3e19/attachment-0001.gif>


More information about the Lizmap mailing list