This project is read-only.

Passing Object in Query

Apr 18, 2013 at 7:30 AM
Below is the script I need to run. How do I pass the statement below to the context.run?
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script>

It is needed to access the object esri. Thank-you for all your help. Tom
                <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script>

                //build query filter            
                var QueryTaskGetFeatures = new esri.tasks.QueryTask(" + '"'.ToString() + @"http://rockhillgis.cityofrockhill.com/ArcGIS/rest/services/pzi/MapServer/13" + '"'.ToString() + @");
                var query = new esri.tasks.Query();
                query.returnGeometry = true;
                query.where = " + '"'.ToString() + "taxmapid='2010000022'" + '"'.ToString() + @";
                query.outFields = [" + '"'.ToString() + "*" + '"'.ToString() + @"];
                QueryTaskGetFeatures.execute(query);
                dojo.connect(QueryTaskGetFeatures, " + '"'.ToString() + "onComplete" + '"'.ToString() + @", function (fset) {                
                alert(fset.features[0].attributes[fset.fields[0].name]);
                string = fset.features[0].attributes[fset.fields[0].name];
                });"
May 8, 2013 at 3:56 AM
You got any solution?
I'm having the same problem to call external resources within the JavascriptDotNet.

If you can help me, would willingly.
Thank you.