<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);">
Hi thanks for your reply,</div>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><b>- The
settings for your form where on another style that the one loaded by default ?</b></span></p>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">I have
a default style loaded in the PostgreSQL database for that layer, and I've made some changes to the layer structure. I've reloaded the layer by changing the layer source. Perhaps the issue could have arisen here.</span></p>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></p>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Thank
you for the information provided.</span></p>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br>
</span></p>
<p class="elementToProof" style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Regards,</span></p>
<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 Etienne Trimaille via Lizmap <lizmap@lists.osgeo.org><br>
<b>Inviato:</b> martedì 12 marzo 2024 17:42<br>
<b>A:</b> lizmap@lists.osgeo.org <lizmap@lists.osgeo.org><br>
<b>Oggetto:</b> Re: [Lizmap] R: R: R: R: Lizmap Server Plugin</span>
<div> </div>
</div>
<div style="padding-bottom: 1px;">
<p style="margin-top: 0px; margin-bottom: 0px;">Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">So for the style, you might have hit this issue :
<a href="https://github.com/3liz/lizmap-web-client/issues/3952" id="OWAadc8c436-b405-e2fb-0e75-6f30cb7ee3bf" class="x_moz-txt-link-freetext OWAAutoLink" data-auth="NotApplicable" style="margin-top: 0px; margin-bottom: 0px;">
https://github.com/3liz/lizmap-web-client/issues/3952</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;">The settings for your form where on another style that the one loaded by default ?</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">> Can I use geometry expression?</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">As Ulisse said, it works only for newly created features. And so the geometry is not yet digitized when you open the creation form, so no, it won't works for now.</p>
<p style="margin-top: 0px; margin-bottom: 0px;">You would need a PostgreSQL trigger.</p>
<p style="margin-top: 0px; margin-bottom: 0px;">It's the issue <a href="https://github.com/3liz/lizmap-web-client/issues/3226" id="OWAd555fcab-5b65-510b-63bc-04b72a608ae8" class="x_moz-txt-link-freetext OWAAutoLink" data-auth="NotApplicable" style="margin-top: 0px; margin-bottom: 0px;">
https://github.com/3liz/lizmap-web-client/issues/3226</a> about all scopes for expressions in editing form.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Keep in mind that LWC 3.5 is already retired and not maintained as well ;-)</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Regards,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div>On 12/03/2024 16:51, Ludovico Frate via Lizmap wrote:</div>
<blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
SOLVED: I had a problem with the style associated to the layer. Now is working. But I have another question: Is there a list of expression that can be used? Can I use geometry expression?</div>
<hr style="display: inline-block; width: 98%;">
<div dir="ltr" id="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="OWA3d5dffcf-45a7-962b-5623-94c01c2d08cc" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<ludovicofrate@hotmail.it></a><br>
<b>Inviato:</b> martedì 12 marzo 2024 16:09<br>
<b>A:</b> <a href="mailto:lizmap@lists.osgeo.org" id="OWA3ea8f6eb-9b5c-e7cd-ccda-f10e58d5ae3d" class="x_moz-txt-link-abbreviated OWAAutoLink">
lizmap@lists.osgeo.org</a> <a href="mailto:lizmap@lists.osgeo.org" id="OWA9c89a23f-8ee6-90e0-eac2-c67300758d99" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a>; René-Luc Dhont <a href="mailto:rldhont@gmail.com" id="OWA1e9088b4-0729-37ac-f730-50e580800ba4" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<rldhont@gmail.com></a>; Ludovico Frate <a href="mailto:ludovicofrate@hotmail.it" id="OWA99f298e1-ac12-b2c2-d207-4ff92b259a42" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<ludovicofrate@hotmail.it></a><br>
<b>Oggetto:</b> R: [Lizmap] R: R: R: Lizmap Server Plugin</span>
<div> </div>
</div>
<div style="direction: ltr;"><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 style="direction: ltr;"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><br>
</span></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:3|T:3" src="cid:5f30205b-81bf-44f8-9665-5935a6ba2862"></span></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_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="OWAeeae1701-d6e5-6de7-c2e3-bf442dc48f2d" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap-bounces@lists.osgeo.org></a> per conto di Ludovico Frate via Lizmap <a href="mailto:lizmap@lists.osgeo.org" id="OWA8c2e3201-99b4-b8ff-073b-8fd763ae35e6" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Inviato:</b> martedì 12 marzo 2024 14:38<br>
<b>A:</b> <a href="mailto:lizmap@lists.osgeo.org" id="OWAd1b19760-8e2b-d6c6-5091-2f9c592e3eab" class="x_moz-txt-link-abbreviated OWAAutoLink">lizmap@lists.osgeo.org</a>
<a href="mailto:lizmap@lists.osgeo.org" id="OWA8a19a1eb-a4b1-372f-07e3-4668b52f89fb" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a>; René-Luc Dhont <a href="mailto:rldhont@gmail.com" id="OWA54c7fdab-fb72-fb5a-2845-5e1e81533e3f" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<rldhont@gmail.com></a><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 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_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="OWAdfde48c5-55bf-5291-145a-7ae7f9ae8782" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap-bounces@lists.osgeo.org></a> per conto di René-Luc Dhont via Lizmap <a href="mailto:lizmap@lists.osgeo.org" id="OWAc6544b23-61ee-dc09-b054-00bc5af8ba09" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a><br>
<b>Inviato:</b> martedì 12 marzo 2024 13:08<br>
<b>A:</b> <a href="mailto:lizmap@lists.osgeo.org" id="OWA6343c8a3-2583-7c1c-cea8-c6e043634d2b" class="x_moz-txt-link-abbreviated OWAAutoLink">lizmap@lists.osgeo.org</a>
<a href="mailto:lizmap@lists.osgeo.org" id="OWA93c84e9f-0b70-93b2-abc4-604bf4bee5f9" class="x_moz-txt-link-rfc2396E OWAAutoLink">
<lizmap@lists.osgeo.org></a><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 id="x_x_x_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="OWA047fa231-8a0f-f1a2-9b7d-553126cc44ab" class="x_x_x_x_moz-txt-link-rfc2396E x_x_x_OWAAutoLink">
<lizmap-bounces@lists.osgeo.org></a> per conto di Ulisse Cavallini via Lizmap <a href="mailto:lizmap@lists.osgeo.org" id="OWA14cc831f-af3e-2683-809d-5a6c284a009f" class="x_x_x_x_moz-txt-link-rfc2396E x_x_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="OWAa662e018-d9f7-b518-825e-0e37baa533ec" class="x_x_x_x_moz-txt-link-abbreviated x_x_x_OWAAutoLink x_moz-txt-link-freetext">lizmap@lists.osgeo.org</a>
<a href="mailto:lizmap@lists.osgeo.org" id="OWA9d1bced1-61c4-984f-cf98-c17df311a649" class="x_x_x_x_moz-txt-link-rfc2396E x_x_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:6|T:6" src="cid:9ede2b35-0b59-495d-bc67-a92ec765158c"></span></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_x_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="OWA617924e4-5597-5b40-4889-c0f5f8e23c7c" class="x_x_x_x_x_moz-txt-link-rfc2396E x_x_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="OWA112b4e8c-1fad-fdbc-6f9f-55b8e03b09c0" class="x_x_x_x_x_moz-txt-link-abbreviated x_x_x_x_moz-txt-link-freetext x_x_x_OWAAutoLink x_moz-txt-link-freetext">
lizmap@lists.osgeo.org</a> <a href="mailto:lizmap@lists.osgeo.org" id="OWA63f20826-1dba-cfb6-dc22-8cfbdf5ab9e6" class="x_x_x_x_x_moz-txt-link-rfc2396E x_x_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_x_x_moz-mime-attachment-header"></fieldset>
<pre><div style="direction: ltr;">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA04b51a1d-6f20-558f-be8d-12a1a1f509f9" class="x_x_x_x_x_moz-txt-link-abbreviated x_x_x_x_moz-txt-link-freetext x_x_x_OWAAutoLink x_moz-txt-link-freetext">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWAe21c6c95-5172-0ac6-544b-e63cb568750d" class="x_x_x_x_x_moz-txt-link-freetext x_x_x_x_moz-txt-link-freetext x_x_x_OWAAutoLink x_moz-txt-link-freetext" 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="OWA98779775-871a-2295-7a44-5eb4a81c2c6d" class="x_x_x_x_x_moz-txt-link-abbreviated x_x_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_x_x_moz-mime-attachment-header"></fieldset>
<pre><div style="direction: ltr;">_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA048711fb-1827-805b-354a-ba8c5375c466" class="x_x_x_x_moz-txt-link-abbreviated x_x_x_OWAAutoLink x_moz-txt-link-freetext">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWA7135679f-b736-a47a-3287-f3759bf23885" class="x_x_x_x_moz-txt-link-freetext x_x_x_OWAAutoLink x_moz-txt-link-freetext" 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_x_x_grammalecte_menu_main_button_shadow_host">
</div>
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre><div>_______________________________________________
Lizmap mailing list
<a href="mailto:Lizmap@lists.osgeo.org" id="OWA6a7e21a9-a671-1d3f-90db-eaa4b85c0c73" class="x_moz-txt-link-abbreviated OWAAutoLink">Lizmap@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" id="OWAe366b38e-7cf8-e5cb-d16f-877543be147a" class="x_moz-txt-link-freetext OWAAutoLink" data-auth="NotApplicable">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</div></pre>
</blockquote>
<div>--</div>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="color: rgb(154, 205, 50);"><b>Etienne Trimaille</b></span><br>
Géomaticien<br>
<span style="color: rgb(154, 205, 50);"><a href="http://www.3liz.com" id="OWA49072bfd-7d07-1907-0826-f0c1fdffc748" class="OWAAutoLink" data-auth="NotApplicable" style="color: rgb(154, 205, 50); text-decoration: none; margin-top: 0px; margin-bottom: 0px;">www.3liz.com</a></span><br>
<br>
<b>Tel.</b> 06 12 93 11 39<br>
<b>Bureau</b><br>
31, rue de l'Argenterie<br>
34000 Montpellier<br>
<b>Siège social</b><br>
73, allée Kleber<br>
Boulevard de Strasbourg<br>
34000 Montpellier</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div style="width:0px; height:0px" id="x_grammalecte_menu_main_button_shadow_host">
</div>
</div>
</body>
</html>