<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">It seems quite strange, but the input form with constraints works well. I just have an issue with default values.</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><img size="9162" contenttype="image/png" style="max-width: 1866px;" data-outlook-trace="F:1|T:1" src="cid:3f28510a-ca4d-4370-abb7-87c6198efa55"></span></div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Da:</b> Lizmap <lizmap-bounces@lists.osgeo.org> per conto di Ludovico Frate via Lizmap <lizmap@lists.osgeo.org><br>
<b>Inviato:</b> martedì 12 marzo 2024 14:38<br>
<b>A:</b> lizmap@lists.osgeo.org <lizmap@lists.osgeo.org>; René-Luc Dhont <rldhont@gmail.com><br>
<b>Oggetto:</b> [Lizmap] R: R: R: Lizmap Server Plugin</span>
<div> </div>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Still not working with now() used as default value.</div>
<div id="x_appendonsend"></div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Da:</b> Lizmap <lizmap-bounces@lists.osgeo.org> per conto di René-Luc Dhont via Lizmap <lizmap@lists.osgeo.org><br>
<b>Inviato:</b> martedì 12 marzo 2024 13:08<br>
<b>A:</b> lizmap@lists.osgeo.org <lizmap@lists.osgeo.org><br>
<b>Oggetto:</b> Re: [Lizmap] R: R: Lizmap Server Plugin</span>
<div> </div>
</div>
<div style="padding-bottom: 1px;">
<div style="direction: ltr;">Hi,<br>
<br>
Instead of `$id` which could mean nothing for server, have you try `now()` or something else based on `now()` or a project variable ?<br>
<br>
René-Luc<br>
<br>
</div>
<div style="direction: ltr;">Le 12/03/2024 à 12:42, Ludovico Frate via Lizmap a écrit :</div>
<blockquote>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">Hi, I'm testing by inserting a new value.</span></p>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div dir="ltr" id="x_x_divRplyFwdMsg"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Da:</b> Lizmap
<a href="mailto:lizmap-bounces@lists.osgeo.org" id="OWA64fdd3b1-2b6a-82d2-dad6-78e99e94dcb3" class="x_x_moz-txt-link-rfc2396E x_OWAAutoLink">
<lizmap-bounces@lists.osgeo.org></a> per conto di Ulisse Cavallini via Lizmap <a href="mailto:lizmap@lists.osgeo.org" id="OWA3e865683-e165-b2de-6f0d-e9e0245e33a6" class="x_x_moz-txt-link-rfc2396E x_OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Inviato:</b> martedì 12 marzo 2024 12:34<br>
<b>A:</b> <a href="mailto:lizmap@lists.osgeo.org" id="OWAd23da9a8-06c5-7b80-4ba7-e73e06969975" class="x_x_moz-txt-link-abbreviated x_OWAAutoLink">lizmap@lists.osgeo.org</a>
<a href="mailto:lizmap@lists.osgeo.org" id="OWA1770a2ba-85ed-ea04-d614-0813823b4bad" class="x_x_moz-txt-link-rfc2396E x_OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Oggetto:</b> Re: [Lizmap] R: Lizmap Server Plugin</span>
<div> </div>
</div>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">Hi!</p>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">Are you testing this with an update on a saved feature, or with an insert?</p>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">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.</p>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div style="direction: ltr;">On 3/12/24 12:27, Ludovico Frate via Lizmap wrote:</div>
<blockquote>
<div style="direction: ltr;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">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.</span></div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><img style="max-width: 1866px;" data-outlook-trace="F:4|T:4" src="cid:4b4be571-9c21-4ab4-8715-4295dabcd226"></span></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div dir="ltr" id="x_x_x_divRplyFwdMsg"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Da:</b> Ludovico Frate
<a href="mailto:ludovicofrate@hotmail.it" id="OWA5398a37a-e8ff-4674-801e-5fa9ee808357" class="x_x_x_moz-txt-link-rfc2396E x_OWAAutoLink">
<ludovicofrate@hotmail.it></a><br>
<b>Inviato:</b> lunedì 11 marzo 2024 21:34<br>
<b>A:</b> <a href="mailto:lizmap@lists.osgeo.org" id="OWA7e8b448a-e81c-6185-998f-e4b00636009f" class="x_x_x_moz-txt-link-abbreviated x_x_moz-txt-link-freetext x_OWAAutoLink">
lizmap@lists.osgeo.org</a> <a href="mailto:lizmap@lists.osgeo.org" id="OWAfc0e5d1b-b8f5-0251-4c52-7fd34ccad613" class="x_x_x_moz-txt-link-rfc2396E x_OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Oggetto:</b> Lizmap Server Plugin</span>
<div> </div>
</div>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">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.</p>
<p style="direction: ltr; margin-top: 0px; margin-bottom: 0px;">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?</p>
<div style="direction: ltr;"><br>
</div>
<fieldset class="x_x_x_moz-mime-attachment-header"></fieldset>
<pre><div style="direction: ltr;">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA35a67d9d-a7ed-d5dd-1a30-f8a3fa9abfba" class="x_x_x_moz-txt-link-abbreviated x_x_moz-txt-link-freetext x_OWAAutoLink">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWA69a819a7-93e1-a77b-efbd-bb7393f0d68d" class="x_x_x_moz-txt-link-freetext x_x_moz-txt-link-freetext x_OWAAutoLink" data-auth="NotApplicable">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
</blockquote>
<pre><div style="direction: ltr;">-- 
Ulisse Cavallini
<a href="http://www.faunalia.eu" id="OWA38abcc3f-4697-49d6-1270-89cd2d72a400" class="x_x_x_moz-txt-link-abbreviated x_OWAAutoLink" data-auth="NotApplicable">www.faunalia.eu</a>
Training, support, development on QGIS, PostGIS and more</div></pre>
<div style="direction: ltr;"><br>
</div>
<fieldset class="x_x_moz-mime-attachment-header"></fieldset>
<pre><div style="direction: ltr;">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA80e6bea1-8e57-b2b3-f8bb-9da371efd198" class="x_x_moz-txt-link-abbreviated x_OWAAutoLink">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWAc46cbf2d-458a-5ae4-5b37-c3e1370effdd" class="x_x_moz-txt-link-freetext x_OWAAutoLink" data-auth="NotApplicable">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
</blockquote>
<div style="direction: ltr;"><br>
</div>
<div style="width:0px; height:0px" id="x_x_grammalecte_menu_main_button_shadow_host">
</div>
</div>
</body>
</html>