Select to view content in your preferred language

How to get a Query result to symbolise so the results are obvious

276
7
Jump to solution
12-13-2024 06:03 AM
Labels (1)
SimonCrutchley
Frequent Contributor

I'm being forced to recreate an app built in Web AppBuilder in Experience builder, but I've hit a snag. When I run a query (either spatial or data) I get the results in a filmstrip using the pop-up config settings, and the map zooms to the features, BUT it doesn't highlight them in any way, so it's impossible to know which are the relevant features. In WAB you could set the symbology, but this doesn't appear to be an option here. I'm sure there must be a setting somewhere that I'm missing, but it's not obvious.

Thanks

I'm using Portal 10.9.1 which is set by my organisation.

0 Kudos
1 Solution

Accepted Solutions
RyanUthoff
MVP Regular Contributor

I was able to get this to work, but the option to specify the symbology of the query results is on a different page. 

Go to your query widget and click Action > Message action > Add a trigger > Records created > Map > Show on map. Then you can specify the symbology you are wanting for the results of your query. I attached some screenshots as well.

RyanUthoff_0-1734344283834.png

RyanUthoff_1-1734344347260.pngRyanUthoff_2-1734344387542.pngRyanUthoff_3-1734344403563.png

 

 

View solution in original post

7 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

Have you played around with the actions? These are found in data and message actions and does work on my map.

Laura_0-1734124171385.png

 

0 Kudos
SimonCrutchley
Frequent Contributor

Hi Laura,

Unfortunately, it makes no difference. I've tried the default yellow and also changed to blue, but nothing shows, unless I'm missing something.

SimonCrutchley_0-1734340957381.png

Cheers

0 Kudos
SimonCrutchley
Frequent Contributor

This is what I get when I query

SimonCrutchley_1-1734342236319.png

As you can see, it has zoomed to 33795_006, but it's not highlighted in any way.

0 Kudos
RyanUthoff
MVP Regular Contributor

I was able to get this to work, but the option to specify the symbology of the query results is on a different page. 

Go to your query widget and click Action > Message action > Add a trigger > Records created > Map > Show on map. Then you can specify the symbology you are wanting for the results of your query. I attached some screenshots as well.

RyanUthoff_0-1734344283834.png

RyanUthoff_1-1734344347260.pngRyanUthoff_2-1734344387542.pngRyanUthoff_3-1734344403563.png

 

 

SimonCrutchley
Frequent Contributor

Hi Ryan,

Brilliant, thanks. 😀 Why does it have to be so complicated though?

0 Kudos
AmyHut
by
Emerging Contributor

I'm able to get this to work for three of the four layers in my query widget -- a pin is placed at the location of the query results so it is very clear. When I query the fourth layer, however, no pin is placed, and I cannot figure out what the difference in configuration is. Does anyone have any ideas as to whey 'Show on map' isn't working for one point feature class? Thanks in advance! 

0 Kudos
AmyHut
by
Emerging Contributor

In case this is helpful to anyone, I resolved my issue described above. The layer for which no pin was being placed in response to a "show on map" message action in my query widget was a multipoint layer. Once I converted this from a multipoint layer to a point layer, a pin was dropped at the location of the result I selected from my query widget. Apparently multipoint layers are not supported. May this save someone some time...

0 Kudos