[QGIS-Developer] Sort order for Value Map widget values

Matthias Kuhn matthias at opengis.ch
Fri Mar 22 08:42:15 PDT 2019


Hi,

Since QGIS 3, the configuration is already stored as list (ordered) and
no longer as map (unordered) like in QGIS 2. So it should mostly be there.

What's missing apparently is that the "load the values from CSV" button
does not preserve the order.

I can have a look at that in a bugfixing sprint.

Meanwhile you can type the values manually instead of loading them from
CSV as a workaround

Matthias

On 3/22/19 4:21 PM, Tim Sutton wrote:
> Hi
>
>
>
>> On 22 Mar 2019, at 15:04, Andreas Neumann <a.neumann at carto.net
>> <mailto:a.neumann at carto.net>> wrote:
>>
>> Hi,
>>
>> The alternative (workaround) is to put your values in another table
>> and link them through a shared key. Then the sorting works fine. Also
>> the relation reference widget (which requires a relation) sorts
>> values fine.
>>
>>
>
> Yeah I tried that, the problem is I want to reference the lookup list
> from the same table:
>
> Flowering_month -> months table
> Fruiting_month -> months table
> Pruning_month -> months table
>
> If I try to use the relation system for that the months table is
> removed as a relatable table after it has been used once (another bug
> maybe)?
>
>> Of course this doesn't mean the bug in the value map shouldn't be
>> fixed. You can ask a developer familiar with the widgets (e.g.
>> Matthias or someone else familiar with the widgets) to fix it, as
>> part of our bug fixing program.
>>
>>
>
> Yeah it would db great if you could fix that next time you are doing
> paid bug fixing @mathias - seems like a basic thing that should ‘just
> work’.
>
> Thanks for the replies Giovanni and Andreas.
>
> Regards
>
> Tim
>
>
>
>> Greetings,
>>
>> Andreas
>>
>>
>> Am 22.03.19 um 15:26 schrieb Giovanni Manghi:
>>>
>>>     I am using a value map lookup to let the user select a month on
>>>     a form. I used the ‘Load Data from Layer option and the months
>>>     are displayed in a somewhat random looking order. Is there any
>>>     trick to getting the values to display in ascending order of the
>>>     key? Or is this a bug?
>>>
>>>
>>> Hi Tim,
>>> is a long standing bug.
>>>
>>> cheers!
>>>
>>> -- G --
>>>
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org <http://QGIS.org>
>
> Visit http://kartoza.com <http://kartoza.com/> to find out about open
> source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux 
> *IRC:* timlinux on #qgis at freenode.net <http://freenode.net>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-- 
Matthias Kuhn
matthias at opengis.ch <mailto:matthias at opengis.ch>
+41 (0)76 435 67 63 <tel:+41764356763>
OPENGIS.ch Logo <http://www.opengis.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190322/5cdbb4e3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190322/5cdbb4e3/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6671 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190322/5cdbb4e3/attachment-0001.png>


More information about the QGIS-Developer mailing list