[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    [QGIS-Developer] iface.openFeatureForm() Does Not Populate Form With Defaults
From:       C Hamilton <adenaculture () gmail ! com>
Date:       2020-11-12 14:34:39
Message-ID: CABPxTToUvmPH7keuB6vwoN1_z5OKTNrcoz2C9hA1QPDowNQGcw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


In one of my plugins I call

iface.openFeatureForm(layer, feature_being_added, False)

but it does not pre populate the form with the defaults that are set up in
the Layer properties->Attributes Form->Defaults.

If you use the standard "Add Point feature" the default values are properly
set. Is there something else I need to do with openFeatureForm to get the
default values?

Thanks,

Calvin

[Attachment #5 (text/html)]

<div dir="ltr">In one of my plugins I \
call<div><br></div><div>iface.openFeatureForm(layer, feature_being_added, \
False)<br></div><div><br></div><div>but it does not pre populate the form with the \
defaults that are set up in the Layer properties-&gt;Attributes \
Form-&gt;Defaults.</div><div><br></div><div>If you use the standard &quot;Add Point \
feature&quot; the default values are properly set. Is there something  else I need to \
do with openFeatureForm to get the default \
values?</div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin</div></div>


[Attachment #6 (text/plain)]

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic