<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Pekka,</p>
<p>Have you enabled the  transaction mode in your project?</p>
<p>See menu "Project" --> "Properties" --> "Data Sources".</p>
<p>I usually enable all three check boxes:</p>
<p>- Automatically create transaction groups where possible</p>
<p>- Evaluate default values on provider side</p>
<p>- Trust project when data source has no metadata</p>
<p>The transaction mode allows to edit all layers from the same data base connection (needs identical db connection string and credentials) and - together with "evaluate default values on provider side" - immediately retrieves primary keys from the DB, so that you can link objects immediately, without having to save first.</p>
<p>Greetings,</p>
<p>Andreas</p>
<p id="reply-intro">On 2021-06-01 09:55, Pekka Sarkola wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div>
<div dir="ltr">Hi folks!
<div> </div>
<div>I have a problem editing feature attributes in embedded forms. Data is stored in PostGIS and I have a simple 1:1 relationship with the geometry table and an additional attribute table. QGIS version is 3.18.3 on Ubuntu. </div>
<div> </div>
<div>I have created a custom form with a drag-and-drop designer. I can edit additional attribute table attributes in embedded form, but those edits are not stored anywhere. I have to open a separate form and then edit attribute values of the related attribute table. This is quite annoying for the end user.</div>
<div> </div>
<div>Any suggestions? Or should I write a better description to the Github?</div>
<div> </div>
<div>Rgs,</div>
<div> </div>
<div>Pekka</div>
<div>
<div>
<div class="v1gmail_signature" dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p><span style="font-size: 12.8000001907349px;">Pekka Sarkola<br /></span><span style="font-size: 12.8000001907349px;">Gispo Oy<br /></span><a style="font-size: 12.8000001907349px;" href="mailto:pekka.sarkola@gispo.fi" rel="noreferrer">pekka.sarkola@gispo.fi</a><span style="font-size: 12.8000001907349px;">   - GSM +358 40 725 2042<br /></span><a style="font-size: 12.8000001907349px;" href="http://www.gispo.fi/" target="_blank" rel="noopener noreferrer">www.gispo.fi</a><span style="font-size: 12.8000001907349px;"> – </span><a style="font-size: 12.8000001907349px;" href="http://www.paikkatieto.com/" target="_blank" rel="noopener noreferrer">www.paikkatieto.com</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br /></p>

</body></html>