<div dir="ltr">explication is in the code<br><div><br></div><div><a href="http://www.qgis.org/api/qgsvectorlayer_8cpp_source.html#l03192">http://www.qgis.org/api/qgsvectorlayer_8cpp_source.html#l03192</a></div><div><br></div>

<div>it' important to follow the emitted signal and related listener to know exactly all involved cmponents</div><div><br></div><div>ciao ginetto</div><div><br></div><div><br></div></div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 8 October 2013 10:04, Ing. Pierluigi De Rosa <span dir="ltr"><<a href="mailto:pierluigi.derosa@gfosservices.it" target="_blank">pierluigi.derosa@gfosservices.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks Alessando,<br>
It was what I was looking for.<br>
<br>
My error was I didn't updated fields using:<br>
vectorlayer.updateFields()<br>
<br>
Why it is necessary to call it when a field is added into provider?<br>
<br>
Thanks<br>
Pierluigi<br>
<br>
<br>
Il giorno lun, 07/10/2013 alle 10.51 +0200, Alessandro Pasotti ha<br>
scritto:<br>
<div class="im">> You can try this method:<br>
><br>
>  <a href="https://github.com/elpaso/qgis-geocoding/blob/master/GeoCoding.py#L289" target="_blank">https://github.com/elpaso/qgis-geocoding/blob/master/GeoCoding.py#L289</a><br>
><br>
><br>
--<br>
<br>
<br>
</div>________________________________________________________________________<br>
<div class="im">Ing. Pierluigi De Rosa (PhD)<br>
Studio Associato GFOSSERVICES<br>
<br>
</div><div class="im">Via Tilli 58 - 06127 Perugia (PG)<br>
tel: 075 7825101 / fax: 075 7823038<br>
cel: 3497558268<br>
web: <a href="http://www.gfosservices.it" target="_blank">www.gfosservices.it</a><br>
skype: pierluigi.derosa<br>
<br>
</div>--<br>
<br>
<br>
________________________________________________________________________<br>
<div class="im">Ing. Pierluigi De Rosa (PhD)<br>
Studio Associato GFOSSERVICES<br>
<br>
</div><div class="im">Via Tilli 58 - 06127 Perugia (PG)<br>
tel: 075 7825101 / fax: 075 7823038<br>
cel: 3497558268<br>
web: <a href="http://www.gfosservices.it" target="_blank">www.gfosservices.it</a><br>
skype: pierluigi.derosa<br>
<br>
</div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>