I am trying to allow a user to calculate geometry for a predefined field from the Edit widget pop-up window using the ESRI JS geometryEngine. So far I've added a button to the Edit widget pop-up (in place of the close button), and assigning a variable to the selected features. However, Firebug tells me there is an error on this line in the geometryengine.js
var CalcAcres=geometryEngine.geodesicArea(SelectedPoly, "acres")
Anyone have an idea on what's going on? My current thinking is that I'm doing to much in the "addButtonToInspector" and need to move the calculation somewhere outside this function