Select to view content in your preferred language

Identify popup - dynamic control of popup for no results

1031
2
11-02-2011 07:41 AM
JoeRutkowski
Regular Contributor
I am using the popup window for id results. When a click occurs in an area over no features, the popup says "No information available". I know based on the helpful post at http://forums.arcgis.com/threads/34223-Localization-customization-of-Pop-up-window how to change the text that appears within the popup.

What I would like to find out is how can I trap for the lack of results returned within the executeIdentifyTask so that i can dynamically alter the popup content.
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: map12

Joe,
Did you even figure out your issue? I'm looking to NOT show or hide the infowindow/popup when the results return NULL or No Info Available?
thanks
Chris Pollard
0 Kudos
StephenLead
Honored Contributor
how can I trap for the lack of results returned within the executeIdentifyTask so that i can dynamically alter the popup content.


The identifyTask fires an onComplete event, which contains the results of the identifyTask (as an array of features).

You could check this to see whether there is anything to report, using identifyResults.length

Steve
0 Kudos