[Lizmap] R: R: Lizmap Server Plugin

René-Luc Dhont rldhont at gmail.com
Tue Mar 12 05:08:48 PDT 2024


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> per conto di Ulisse 
> Cavallini via Lizmap <lizmap at lists.osgeo.org>
> *Inviato:* martedì 12 marzo 2024 12:34
> *A:* lizmap at lists.osgeo.org <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.
>
>     ------------------------------------------------------------------------
>     *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
>     <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
> https://lists.osgeo.org/mailman/listinfo/lizmap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240312/f685616f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-ldkhjvyi.gif
Type: image/gif
Size: 42 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240312/f685616f/attachment.gif>


More information about the Lizmap mailing list