POST
|
I have an app with a Dojo Enhanced Grid that loads correctly in Chrome, IE, and Safari. I can not figure out why but in Fire Fox the app does not load correctly? I am getting a "too much recursion" error? The javscript to load the grid is unction loadGrid(strQuery){ var gridQueryTask = new QueryTask("http://arcgis-tamarackags101-235134627.us-west-2.elb.amazonaws.com/arcgis/rest/services/Gehan/Gehan_Communities/FeatureServer/0"); console.log("IN GRID FUNCTION"); var gridQuery = new query(); gridQuery.returnGeometry = false; gridQuery.outFields = ["*"]; gridQuery.where = strQuery; gridQueryTask.execute(gridQuery, showResults); } function showResults(results) { var items = new Array; for (var i=0, il=results.features.length; i<il; i++) { items = results.features.attributes; } //Create data object to be used in store var data = { identifier: "OID", //This field needs to have unique values label: "OID", //Name field for display. Not pertinent to a grid but may be used elsewhere. items: items }; //Create data store and bind to grid. parcelsStore = new ItemFileWriteStore({ data:data }); parcelsGrid = dijit.byId('grid'); parcelsGrid.setStore(parcelsStore); parcelsGrid.sort(); parcelsGrid.update(); console.log ("DONE"); } And the HTML <div dojotype="dojox/layout/ExpandoPane" id="bottomPane" region="bottom" splitter="true" class="dojoxExpandoBottom"> <table data-dojo-type="dojox/grid/EnhancedGrid" data-dojo-id="grid" id="grid" data-dojo-props="rowsPerPage:'5', rowSelector:'20px'"> <thead> <tr> <th field="OID" formatter="makeZoomButton" width="18px"> <img alt="+" src="images/zoom.png"/> </th> <th field="OID" >OBJECT ID</th> <th field="Block" editable="true" >BLOCK</th> <th field="Community" width="100px" >COMMUNITY</th> <th field="Date_Aquir" formatter="formatDate" width="100px" editable="true">DATE ACQUIRED</th> <th field="Date_Trans" formatter="formatDate" width="100px" editable="true">DATE TRANSFERRED</th> <th field="Frontage" editable="true">FRONTAGE</th> <th field="House_Num" editable="true">HOUSE NUMBER</th> <th field="JDE" editable="true">LAND JDE</th> <th field="Lot_No" editable="true">LOT NUMBER</th> <th field="Notes" width="150px" editable="true">NOTES</th> <th field="Phase" editable="true">PHASE</th> <th field="Status" editable="false">TRANSFER STATUS</th> <th field="Street_Nam" width="150px" editable="true">STREET NAME</th> <th field="Street_Typ" width="150px" editable="true">STREET TYPE</th> <th field="ZipCode" editable="true">ZIP</th> </tr> </thead> </table> </div> Any help is greatly appreciated!
... View more
11-25-2013
08:55 PM
|
0
|
0
|
351
|
POST
|
I have a simple geoprocessing service written in python that converts a table to a CSV file. It works fine in ArcMap and I can get it to work in Javascript when the input data is set as a constant value or selected form the layer list. When I try to run it with user defined input (a Feature Set derived from a Feature Layer) the tool fails. I am at a complete loss! The service is published at: http://arcgis-tamarackags101-235134627.us-west-2.elb.amazonaws.com/arcgis/rest/services/Emerson/TableToCSV_FS3/GPServer/TableToCSV Here is my code: function exportAll(){ var query = new esri.tasks.Query(); query.where = "1 = 1"; query.outFields = ["*"]; //parcelsFS is my Feature Service Layer parcelsFS.queryFeatures(query, function (features) { var inputFeatures = new esri.tasks.FeatureSet(); inputFeatures = features.features; var params= { "Table_Name":inputFeatures}; gpTask.submitJob(params, completeCallback , statusCallback,function(error){ //alert(error); //esri.hide(loading); }); }); } function completeCallback(jobInfo){ if(jobInfo.jobStatus !== "esriJobFailed"){ gpTask.getResultData(jobInfo.jobId,"Output_CSV", downloadFile); } } function statusCallback(jobInfo) { var status = jobInfo.jobStatus; if(status === "esriJobFailed"){ alert(status); //esri.hide(loading); } else if (status === "esriJobSucceeded"){ //esri.hide(loading); } } function downloadFile(outputFile){ map.graphics.clear(); var theurl = outputFile.value.url; console.log(theurl); window.location = theurl; }
... View more
08-10-2013
04:30 PM
|
0
|
1
|
574
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|