| Bug ID Number |
BUG-000115609 |
| Submitted | July 24, 2018 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS API for JavaScript |
| Version found | 4.7 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Status | Non-Reproducible
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
|
Additional Information
Please use the PopupTemplate.outFields property as described in https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields to fix this.
Workaround
- Use FeatureLayer class and add them to the map instead of MapImageLayer. This works in versions 4.6 to 4.8
- Open the sample application at - https://jsbin.com/qazoxisefo/edit?html,output
- The popup returns the population in year 2000 correctly.
- Change the API version to 4.7 and then to 4.8 and run again.
- The sample works correctly in the 4.7 and 4.8 version as well.
Checking the feature.graphic.attributes shows all the attributes. This can be verified by putting a breakpoint in debugger mode at line number 55, and checking the value of the feature object.
Steps to Reproduce