Add Graphics Error
Why does an Add Graphics activity throw this error:
Error in geometryPicker1 element's changed event in a Display Form activity: [WF: activity error] b.getExtent is not a function
I've deleted and recreated the activity from scratch, but still get this error. I use the Add Graphics activity elsewhere in my workflow without issue. The feature I'm adding looks normal in the console - attributes, geometry and symbol.
I'd appreciate any insight on how to proceed.
-
Is the Spatial Reference of your geometry you want to add the same as the one of your map ?
0 -
Hi Sean,
Is it possible you created the feature as a literal object? The error suggests it's missing the functions on the object. You can use the Create Feature activity to make a proper esri.Graphic from the supplied Attributes/Geometry/Symbol. Then the Geometry Picker should be able to interact with it correctly.
0 -
Thanks, Ken. I believe you're correct. I've moved to CreateFeature and the behavior is improved.
Merci, Guillaume. The spatial references were matched, but the AddGraphic wasn't creating the fully functional feature object needed.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare