Select to view content in your preferred language

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

1097
10
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

10 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
SimonCrutchley
Frequent Contributor

This is sort of a continuation of this thread, so I'm hoping to get an answer. When I run a query on the two layers within my app, I get different responses in the results. In both cases I've set up so that the results show results using the webmap settings, which results in a filmstrip with a thumbnail image and some text. If I click inside any example of one of my point feature results, the map zooms to that location. However, if I try to do the same for the polygon features nothing happens. I can't use the 'Data Actions' option, which might allow this, because it enables Export of data (even when this is unticked ☹️) and I cannot allow this.

People were very helpful getting me to be able to change the query result appearance, so I'm hoping you might have an answer here.

Thanks

0 Kudos
BlakeTerhune
MVP Regular Contributor

You should make a new post for this question, especially since this already has an accepted solution.

0 Kudos