AnsweredAssumed Answered

Passing FeatureSet to GeoProcessing Service as argument by JavaScript API

Question asked by ammarGomaa on Jan 15, 2014
Latest reply on Apr 7, 2015 by jestanford
Hello Dears,

I need to create FeatrueSet in runtime and pass this FeatureSet as argument to GeoProcessing Service.

I try this Code but I face error when executing Geoprocessing service
               
                var features = [];
                features.push(app.map.graphics.graphics[1]);

                var fset = new FeatureSet();
                fset.spatialReference = app.map.spatialReference;
                fset.features = features;
                fset.geometryType = app.map.graphics.graphics[1].geometry.type;

Outcomes