<div dir="ltr"><div dir="ltr"><div>Hi Randy,</div><div>It might be because, at the time of feature creation QGIS does not know about what you filled in the other fields; this feature is a kind of "insert before" trigger. See the note at <a href="https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html#default-values">https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/vector_properties.html#default-values</a></div><div>How does it play if your total field was (temporary) a virtual field?</div><div><br></div><div>HTH,</div><div>Harrissou<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 27 août 2018 à 22:28, Randal Hale <<a href="mailto:rjhale@northrivergeographic.com">rjhale@northrivergeographic.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have an address point database. There are some string calculations <br>
that have to happen after a point has been added. I've hit a bit of a <br>
stuck spot with this one.<br>
<br>
I have three fields: fielda. fieldb, and fieldc<br>
<br>
When the user adds the information for those three fields I have one <br>
field that needs to add the three strings together. In the fieldtotal <br>
column I set up an expression (in the attributes form) for the default <br>
value that is: "fielda" || ' ' || "fieldb" || ' ' || "fieldc" and place <br>
that in default value.<br>
<br>
example: "123", "MAIN", "456" and I want "123 MAIN 456"<br>
<br>
It won't calculate at the end - it's as if I'm forgetting to set <br>
something. If I check the "Apply default value on update" checkbox it <br>
will update if I edit the point - just not on initial point creation.<br>
<br>
I'm pretty sure I'm missing something.<br>
<br>
Randy<br>
<br>
-- <br>
Randal Hale<br>
<a href="mailto:rjhale@northrivergeographic.com" target="_blank">rjhale@northrivergeographic.com</a><br>
<a href="https://www.northrivergeographic.com" rel="noreferrer" target="_blank">https://www.northrivergeographic.com</a><br>
(423)653-3611<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>