Version:1.0 StartHTML:000000286 EndHTML:000017318 StartFragment:000002743 EndFragment:000017286 StartSelection:000002743 EndSelection:000017286 SourceURL:https://community.esri.com/discussion/create.jspa?suppressMarkQuestion=true&question=true&containerType=14&containerID=2128
I want to use a geometry object from an esriRequest to add a graphic to a featureLayer. I present the client with two options: 1.) use the SketchViewModel draw tool to create a polygon to add a new graphic to the featureLayer, and 2.) use a dropdown box selector to choose a specific Field Office boundary polygon to add a new graphic to the featureLayer. While the draw tool works fine, when I obtain my geometry object from the esriRequest it will not display when I later go to that record and attempt to display the geometry on my web map.
Why are you using an esriRequest instead of the standard QueryTask? If you use a QueryTask the results are an array of Graphics. When using a low level esriRequest the results are a simple JSON string. You would have to create an graphics or geometry Objects from that string.