[QGIS-Developer] Limitations of the search locator "af" option?
Matthias Kuhn
matthias at opengis.ch
Thu Nov 15 09:48:03 PST 2018
Hi Harrissou,
It's the "display name" configured in layer properties -> display.
What's shown in the form view of the attribute table.
This way it's highly configurable, what's actually searched for in all
the layers. Especially with numbers it would often be impossible to find
something useful without somehow limiting the attributes which are being
searched.
Regards
Matthias
On 11/15/18 6:03 PM, DelazJ wrote:
> Hi devs,
>
> I was about to write an issue report but given that I get a kind of
> consistent result, I wonder if it's by design or a bug. so better ask
> here before.
>
> I'm exploring the locator feature that searches in all layers , aka
> "af" and because it almost never returns something usable to me (I
> often search text), i tried to understand its logic and arrived to the
> following: It does not search in ALL fields of all layers; it searches
> ONLY in the field set as preview field for each layer.
>
> What is a preview field? It's that field in the Display tab of the
> layer properties that you choose to show map tips.
> By default, map tips option use the first field of the layer; actually
> looks like it uses the first field if it's a numeric field (maybe
> integer?). Having a string field as first in the layer does not
> populate the map tip option: you get a [Please define preview text],
> also shown in the locator bar. A bug I should report?
>
> The limitation about the "af" feature not using all fields, if ever
> that's true, is mentioned nowhere. Should be, given that the "active
> layer" option does browse all the fields and people would expect the
> same. And the relation between map tip fields and the locator should
> be more clearly visible. I don't know where but...
>
> I could open issue reports for these but would like to know if I'm not
> missing something.
>
> Regards,
> Harrissou
>
> _______________________________________________
> 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/20181115/dd4183ef/attachment.html>
-------------- 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/20181115/dd4183ef/attachment.png>
More information about the QGIS-Developer
mailing list