Hi, <br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 8:36 AM, Bernhard Ströbl <span dir="ltr">&lt;<a href="mailto:Bernhard.Stroebl@jena.de">Bernhard.Stroebl@jena.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

no, I did not file a ticket for this, although I would support doing so. </blockquote><div>I&#39;ve filed it, here the ticket: #3308 [1]<br><br>Best regards.<br><br>[1] <a href="https://trac.osgeo.org/qgis/ticket/3308">https://trac.osgeo.org/qgis/ticket/3308</a><br>

<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">If I customize the default edit-ui via &quot;Layer Properties&quot; - &quot;Attributes&quot; and choose a &quot;value map&quot; for a numerical field the resulting ComboBox shows the Strings I define but saves the values to the layer&#39;s table. I had expected the same behaviour with a custom ui but nope.<br>


<br>
Giuseppe Sucameli schrieb:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Bernhard,<div class="im"><br>
<br>
On Tue, Dec 7, 2010 at 7:56 AM, Bernhard Ströbl &lt;<a href="mailto:Bernhard.Stroebl@jena.de" target="_blank">Bernhard.Stroebl@jena.de</a> &lt;mailto:<a href="mailto:Bernhard.Stroebl@jena.de" target="_blank">Bernhard.Stroebl@jena.de</a>&gt;&gt; wrote:<br>


<br>
    I can confirm this behaviour QGIS 1.5/WinXP, data from PostGIS<br>
    database. <br>
Did you file a ticket yet? <br>
    My workaround is to have e.g. the QComboBox filled with values and<br>
    _additionally_ have a QTextLine named the same as the field in my<br>
    layer table holding the feature&#39;s current value. The QTextLine is<br>
    not visible to the user but gets changed if the user changes the<br>
    choice in the QComboBox by Qt&#39;S Signal/Slot mechanism.<br>
<br>
You&#39;re right, I understand that a developer can use the initFunction and editForm<br>
from API to bypass the issue, but how can users do the same?<br>
</div></blockquote>
<br>
I do not think they can right now. They would need to do some Python scripting, a very good descrtiption is here:<br>
<a href="http://www.osgeo.org/pipermail/qgis-developer/2010-January/008731.html" target="_blank">http://www.osgeo.org/pipermail/qgis-developer/2010-January/008731.html</a><br>
<br>
regards<br>
<br>
Bernhard<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
<br>
Thinking like an user, if I sets the edit UI from the layer property dialog, the obvious<br>
behaviour is that each combo must be populated and it must show the right value<br>
as the lineedit does.<br>
<br>
If the combobox (but also the spinbox) doesn&#39;t show the right value, then it&#39;s a bug.<br>
Maybe did I start a thread on the wrong ML? Maybe I did.<br>
But I hope we&#39;ll fix it quickly :)<br>
<br>
Let me know if there&#39;s a opened ticket, otherwise I file a new one.<br>
Thanks, and best regard.<br>
<br>
    all the best<br>
<br>
    Bernhard<br>
<br>
    Giuseppe Sucameli schrieb:<br>
<br>
        Hi all,<br>
        it seems there is a problem with Edit UI dialog.<br>
<br>
        I have an .UI which contains a combobox and a spinbox.<br>
        When I edit a row using the Edit UI dialog, the combobox<br>
        PROVINCIA loads<br>
        all the values of the PROVINCIA field, but doesn&#39;t select the<br>
        current row value.<br>
        The spinbox does the same, it doesn&#39;t load the current value.<br>
<br>
        If I use lineedits instead, it works and loads the fields&#39; value.<br>
<br>
        Loading only doesn&#39;t work, because if I change the value and and<br>
        press OK<br>
        the dialog stores the new value back into the field.<br>
<br>
        Does anybody confirm??<br>
        Cheers.<br>
<br>
        --         Giuseppe Sucameli<br>
<br>
<br>
        ------------------------------------------------------------------------<br>
<br>
        _______________________________________________<br>
        Qgis-developer mailing list<br>
        <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br></div></div>
        &lt;mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>&gt;<div class="im"><br>
        <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
        ________ Information from NOD32 ________<br>
        This message was checked by NOD32 Antivirus System for Linux<br>
        Mail Server.<br>
        <a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
<br>
<br>
<br>
    ________ Information from NOD32 ________<br>
    This message was checked by NOD32 Antivirus System for Linux Mail<br>
    Server.<br>
    <a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
<br>
<br>
<br>
<br>
-- <br>
Giuseppe Sucameli<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">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>
<br>
<br>
________ Information from NOD32 ________<br>
This message was checked by NOD32 Antivirus System for Linux Mail Server.<br>
<a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
<br>
________ Information from NOD32 ________<br>
This message was checked by NOD32 Antivirus System for Linux Mail Server.<br>
<a href="http://www.nod32.com" target="_blank">http://www.nod32.com</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br><br>