Query Search Feature Menu Overflow Data Load

212
1
Jump to solution
02-08-2024 11:53 AM
MatthewDriscoll
MVP Alum

When I use a search query, it only loads the first 20 results initially into the feature menu.  It then loads the next 20 as I scroll, ect..  So when I go to print the results I only get those results, but I need all results.  I understand this is by design with good reason, but does anyone have an idea on how to get around this?

See codepen below for an example. 

 

https://codepen.io/mbdriscoll/pen/GReBgYd

 

 

 

0 Kudos
1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

Hi @MatthewDriscoll -

You can try to set the featuresPerPage property on the PopupViewModel: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html... 

By default this is 20, but you could try overriding it to the featureCount value when the popup opens: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html...

Lauren

View solution in original post

1 Reply
LaurenBoyd
Esri Contributor

Hi @MatthewDriscoll -

You can try to set the featuresPerPage property on the PopupViewModel: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html... 

By default this is 20, but you could try overriding it to the featureCount value when the popup opens: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html...

Lauren