Skip to main content

How do I convert ExternalObject event args data captured by EditorPreUpdateFeatureEvent back to graphic/geometry in workflow

Comments

2 comments

  • Tom Neer
    myPolygon = {"geometry":{"type":"polygon","rings":[[[-13634496.056128735,6238241.751916992],[-13632929.09704331,6236082.405899485],[-13636731.839220403,6236082.405974027],[-13636602.851683619,6237981.388370739],[-13634496.056128735,6238241.751916992]]],"_ring":0,"spatialReference":{"wkid":102100,"latestWkid":3857}},"symbol":{"color":{"r":0,"g":0,"b":0,"a":0},"outline":{"color":{"r":230,"g":0,"b":169,"a":1},"width":4,"type":"simplelinesymbol","style":"solid","_inherited":{"p":2}},"type":"simplefillsymbol","style":"solid","_inherited":{"p":2}},"attributes":null,"infoTemplate":null} myGraphic = new Graphic(myPolygon) This doesn't work? Not trying code but just push the JSON back in. Unfortunately, Esri left out the FeatureSet.FromJSON from the Javascript API. Not that something like that would be useful or anything.

     

     
    0
  • Tom Neer
    But if you want to mess around with JSON, I really recommend importing the Newtonsoft.JSON library.
    0

Please sign in to leave a comment.