onQueryFeaturesStatusChanged signal only firing once with multiple queries

98
2
02-11-2020 09:26 AM
Highlighted
New Contributor

I noticed that if you run multiple queries on the same layer at the same time, you only get one signal from onQueryFeaturesStatusChanged, and then you can get both results from queryFeaturesResults from the respective task ids. Is this behavior intended? I would think each query should fire the onQueryFeaturesStatusChanged signal separately.

Tags (1)
Reply
0 Kudos
2 Replies
Highlighted
Esri Frequent Contributor

Hey Mark,

Do you get the expected results if you use `queryFeaturesResultChanged` signal instead?

Reply
0 Kudos
Highlighted
New Contributor

It does, but interestingly it fixed something else at the same time. When you do 2 queries on the same features at the same time, one full and one min, the full one comes back with null attributes. This is the case when using the onQueryFeaturesStatusChanged signal.

Using the queryFeaturesResultChanged signal, this is not the case

Reply
0 Kudos