Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Configurable search not populating drop-down #229

Open
NicoledeGreef opened this issue Aug 7, 2018 · 3 comments
Open

Configurable search not populating drop-down #229

NicoledeGreef opened this issue Aug 7, 2018 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@NicoledeGreef
Copy link
Collaborator

How to reproduce

  • SMK version I'm using: QA env
  • Browser (with version) I'm using: Chrome
  • OS/Platform (with version) I'm using: Win 7 Ent

What behaviour I'm expecting and which behaviour I'm seeing

ALRC draft 5 site. Have configured two attribute search Queries on the uploaded GeoJSON layer. The City search should populate a drop-down but instead I see:

image

Minimal example reproducing the issue

Launch the ALRC draft 5 site and look at the City query.

@NicoledeGreef NicoledeGreef added the bug Something isn't working label Aug 7, 2018
@NicoledeGreef NicoledeGreef added this to the MVP milestone Aug 7, 2018
@dhlevi
Copy link
Collaborator

dhlevi commented Aug 8, 2018

The saved query didn't have any choices provided. I added an option (called Test), and the dropdown is displaying correctly.

@qqnluaq can answer better for this on the client side behaviour, but I don't believe the client auto-populates for vector dropdowns, only MPCM and WMS layers. Vectors require you to define the dropdown values/descriptions.

@dhlevi
Copy link
Collaborator

dhlevi commented Aug 8, 2018

@NicoledeGreef We've just deployed an update to the Admin UI that exposes two options for the Query Dropdowns. More information is available in the documentation, but basically:

You can select "Dropdown" which creates a standard dropdown selection that you must supply values for
Or you can select "Autofill Dropdown" which will automatically poll for values from the source data (Vector, WMS, or DataBC) and populate the selection options from that.

@NicoledeGreef
Copy link
Collaborator Author

Fix verified - thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants