Hi, <br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 8:36 AM, Bernhard Ströbl <span dir="ltr"><<a href="mailto:Bernhard.Stroebl@jena.de">Bernhard.Stroebl@jena.de</a>></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'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 "Layer Properties" - "Attributes" and choose a "value map" for a numerical field the resulting ComboBox shows the Strings I define but saves the values to the layer'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 <<a href="mailto:Bernhard.Stroebl@jena.de" target="_blank">Bernhard.Stroebl@jena.de</a> <mailto:<a href="mailto:Bernhard.Stroebl@jena.de" target="_blank">Bernhard.Stroebl@jena.de</a>>> 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'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'S Signal/Slot mechanism.<br>
<br>
You'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't show the right value, then it's a bug.<br>
Maybe did I start a thread on the wrong ML? Maybe I did.<br>
But I hope we'll fix it quickly :)<br>
<br>
Let me know if there'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't select the<br>
current row value.<br>
The spinbox does the same, it doesn't load the current value.<br>
<br>
If I use lineedits instead, it works and loads the fields' value.<br>
<br>
Loading only doesn'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>
<mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>><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>