<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" style="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="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 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;">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>Le 12/03/2024 à 12:42, Ludovico Frate via Lizmap a écrit :</div>
<blockquote>
<p style="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="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="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
<a href="mailto:lizmap-bounces@lists.osgeo.org" id="OWA8fe7aba3-c288-1dfb-edbb-634a71510f30" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap-bounces@lists.osgeo.org></a> per conto di Ulisse Cavallini via Lizmap <a href="mailto:lizmap@lists.osgeo.org" id="OWA502ab05d-aa54-85c2-c4ed-2ac282b8246f" class="x_moz-txt-link-rfc2396E 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="OWA72b8ae3f-2a2f-6163-71f2-2fac33d924dd" class="x_moz-txt-link-abbreviated OWAAutoLink">lizmap@lists.osgeo.org</a>
<a href="mailto:lizmap@lists.osgeo.org" id="OWA2c44d84a-ae3e-8552-0347-2d82828d723b" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Oggetto:</b> Re: [Lizmap] R: Lizmap Server Plugin</span>
<div> </div>
</div>
<p style="margin-top: 0px; margin-bottom: 0px;">Hi!</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Are you testing this with an update on a saved feature, or with an insert?</p>
<p style="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="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div>On 3/12/24 12:27, Ludovico Frate via Lizmap wrote:</div>
<blockquote>
<div><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="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div><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:3|T:3" src="cid:98feb115-ce9c-4f69-9a66-409824404dbb"></span></div>
<hr style="display: inline-block; width: 98%;">
<div id="x_x_divRplyFwdMsg" dir="ltr"><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="OWAe6997b80-493c-e09c-cad2-2fba4cb2f30a" class="x_x_moz-txt-link-rfc2396E 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="OWAe48e4487-27aa-cc31-45e1-9df86ced7a29" class="x_x_moz-txt-link-abbreviated x_moz-txt-link-freetext OWAAutoLink">
lizmap@lists.osgeo.org</a> <a href="mailto:lizmap@lists.osgeo.org" id="OWA75571b93-69ce-1342-6b95-400d9df8fef0" class="x_x_moz-txt-link-rfc2396E 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>
<br>
<fieldset class="x_x_moz-mime-attachment-header"></fieldset>
<pre><div>_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA179021a3-a774-0cde-472b-2fbfc9507838" class="x_x_moz-txt-link-abbreviated x_moz-txt-link-freetext OWAAutoLink">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWA9795bc0f-4bef-810b-c39a-265f69cec9ee" class="x_x_moz-txt-link-freetext x_moz-txt-link-freetext OWAAutoLink" data-auth="NotApplicable">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
</blockquote>
<pre><div>-- 
Ulisse Cavallini
<a href="http://www.faunalia.eu" id="OWA6df04097-da2b-4db0-728a-d9f0b36ccfde" class="x_x_moz-txt-link-abbreviated OWAAutoLink" data-auth="NotApplicable">www.faunalia.eu</a>
Training, support, development on QGIS, PostGIS and more</div></pre>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre><div>_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA10bdd8a3-d2ec-bc3e-4a6c-5650468d4f1d" class="x_moz-txt-link-abbreviated OWAAutoLink">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWA60fd5253-7df9-a58e-e65e-e3964afb0c30" class="x_moz-txt-link-freetext OWAAutoLink" data-auth="NotApplicable">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
</blockquote>
<br>
<div style="width:0px; height:0px" id="x_grammalecte_menu_main_button_shadow_host">
</div>
</div>
</body>
</html>