POST
|
thank you for the help so far. here's a link to the initial data grid which i've enabled: http://ags.northwindgrp.com/itd-mobile/manage.htm (the first two dataset options are wired up, the others are placeholders). i will review the dojo.data.ItemFileWriteStore function and see where i get. preemptively, though, i will want the values to honor any coded value domains... any thoughts as to whether that is possible using the dojo grid?
... View more
02-16-2012
10:30 AM
|
0
|
0
|
550
|
POST
|
i've seen a few posts about editing feature attributes from within a datagrid (no map). i'm attempting to create a strictly attribute query/edit/update web page to give data managers the option to query features based on dynamically created query.where clauses which are set based on form entries/selections. the following post give some good advice: http://forums.arcgis.com/threads/41785-DataGrid-field-update-and-styling i understand the theory of getting data into a grid and styling it, and i think i get how the update function works using the ItemFileWriteStore.setValue(item, columnName, value) function. however, i am missing the part how to enable the grid to be edited, that is how do i allow user to click in grid cell and accept/capture the typing event and new text? the data grids i've see thus far are clickable with events to zoom, but can't enter new text into a cell... that's the part i need help with. thanks for any comments or resource suggestions.
... View more
02-16-2012
05:57 AM
|
0
|
6
|
3758
|
POST
|
i would like to enable an "easy button" which will enable field users the ability to move an existing point feature to their device gps location. essentially, there is a button, "update location" which will update the selected feature's location/geometry and set it's x,y to the user's device x,y. code is as follows... (however, this does not actually update the selected features geometry, any suggestions?) var moveButton = new dijit.form.Button({ label : "Update Location", "class" : "saveButton" }); dojo.place(moveButton.domNode, attInspector.deleteBtn.domNode, "after"); dojo.connect(moveButton, "onClick", function() { if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { myGPS = esri.geometry.geographicToWebMercator(new esri.geometry.Point(position.coords.longitude, position.coords.latitude)); var newGraphic = new esri.Graphic(myGPS, null, null); updateFeature.geometry = newGraphic.geometry; <<---- the money code line here }, function(error) { HideProgressIndicator(); switch (error.code) { case error.TIMEOUT: alert('Timeout'); break; case error.POSITION_UNAVAILABLE: alert('Position unavailable'); break; case error.PERMISSION_DENIED: alert('Permission denied'); break; case error.UNKNOWN_ERROR: alert('Unknown error'); break; } }); } else { alert('Browser does not support GeoLocation'); } updateFeature.getLayer().applyEdits(null, [updateFeature], null); HideServiceRequestContainer(); reloadLayers(); //to remove/reload layers to overcome the iPad graphics cache issue }); updateFeature is set to each currently selected feature. i've attempted the .update() method but the result gives no errors and no visible adjustment of actual feature geometry.
... View more
02-16-2012
05:48 AM
|
0
|
0
|
205
|
POST
|
i would like to enable an "easy button" which will enable field users the ability to move an existing point feature to their device gps location. essentially, there is a button, "update location" which will update the selected feature's location/geometry and set it's x,y to the user's device x,y. code is as follows... (however, this does not actually update the selected features geometry, any suggestions?) var moveButton = new dijit.form.Button({ label : "Update Location", "class" : "saveButton" }); dojo.place(moveButton.domNode, attInspector.deleteBtn.domNode, "after"); dojo.connect(moveButton, "onClick", function() { if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { myGPS = esri.geometry.geographicToWebMercator(new esri.geometry.Point(position.coords.longitude, position.coords.latitude)); var newGraphic = new esri.Graphic(myGPS, null, null); updateFeature.geometry = newGraphic.geometry; <<---- the money code line here }, function(error) { HideProgressIndicator(); switch (error.code) { case error.TIMEOUT: alert('Timeout'); break; case error.POSITION_UNAVAILABLE: alert('Position unavailable'); break; case error.PERMISSION_DENIED: alert('Permission denied'); break; case error.UNKNOWN_ERROR: alert('Unknown error'); break; } }); } else { alert('Browser does not support GeoLocation'); } updateFeature.getLayer().applyEdits(null, [updateFeature], null); HideServiceRequestContainer(); reloadLayers(); //to remove/reload layers to overcome the iPad graphics cache issue });
... View more
02-13-2012
08:24 AM
|
0
|
2
|
795
|
POST
|
so... i was able to resolve this issue but removing the feature layer after editing, then reloading layer, and then re-attaching it to the initialized editing service. the effectively will overcome any iPad cache of graphics after editing.
... View more
02-13-2012
08:15 AM
|
0
|
0
|
382
|
POST
|
that is indeed the piece that i'd like to replicate for a featurelayer that is set to ondemand. i know that disableClientCaching is only for dynamic service level layers, but for the fact that the safari browser engine is caching the featurelayer, there's got to be some crafty method to forcing the featurelayer, map, or browser to force a redraw.
... View more
02-02-2012
01:20 PM
|
0
|
0
|
382
|
POST
|
i've created a js 2.6 web app which will be primarily accessed via an iPad device. one of the functions is to allow users the ability to delete features. this works w/o error, since the sde feature layer respects the applied updates. the problem is that when an iPad device is used to delete a feature the feature will momentarily disappear, but on pan/zoom the graphic is replaced... however, i can watch that feature in the database, or from a desktop browser, and verify that it is in-fact removed. so, the iOS browser engine is holding onto a cached image (furthermore, if tested in desktop safari, i get the same effect as in mobile safari) and the only way i can get my iPad device to render the point "gone" is to handle a full location.reload(true)... and that is way to cumbersome. btw, the layers being edited are being added to map as esri.layers.FeatureLayer with mode_ondemand, which from all accounts of the api reference do not have a functional "disableClientCaching" or "refresh" property or method. please help! i've been struggling for days on this issue and need to get this resolved asap. you can respond to this post, or email me directly jallen@northwindgrp.com, or call me 208.403.7969. my online reference to this app is: http://arcgisserver.northwind-inc.com/itd-mobile/index.htm. you can test in desktop browser vs mobile browser to see the effect of which i'm referring. thanks for any help.
... View more
02-02-2012
10:50 AM
|
0
|
5
|
2338
|
POST
|
i'm adding a feature layer service via the js api. i'm getting the following errors/warnings... Unexpected value NaN parsing x attribute. Unexpected value NaN parsing y attribute. Unexpected value matrix(1.00000000,0.00000000,0.00000000,1.00000000,NaN,NaN) parsing transform attribute. the features from this service are being rendered as expected, with the addition of a stacked set of these features in the far upper-left of the map view port too! the following is the code which i'm using to add the feature service layers... var serviceRequestLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0"; var serviceRequestmobileLayerURL = "http://arcgisserver.northwind-inc.com/ArcGIS/rest/services/itd_service/MapServer/0"; var serviceRequestLayer = new esri.layers.FeatureLayer(isBorwser ? serviceRequestLayerURL : serviceRequestmobileLayerURL, { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, outFields: ["*"], id: serviceRequestLayerId, displayOnPan: true }); map.addLayer(serviceRequestLayer); var serviceRequestCommentsLayer = new esri.layers.FeatureLayer(serviceRequestCommentsLayerURL, { mode: esri.layers.FeatureLayer.MODE_SELECTION, outFields: ["*"], id: serviceRequestCommentsLayerId, displayOnPan: false }); map.addLayer(serviceRequestCommentsLayer);
... View more
11-07-2011
07:52 AM
|
0
|
5
|
1030
|
POST
|
Thank you for providing this great tool. I'd like to make a few comments... 1) When using the current download version there's a warning that is easily fixed by commenting out line 196 of the SearchWidget.mxml and replacing it with AppEvent.dispatch(AppEvent.DATA_CREATE_INFOWIDGET, data, infoReady); 2) I'd like to see the Unique Values list use the coded domain values (like the info popup) 3) I am using ArcServer 10sp2, ArcSDE 10sp2, FlexViewer 2.4, and SearchWidget 1.5. All data exists within the SDE. Three of my layers will not render unique values at all for any of the fields. The remainder of my layers will render unique values for all fields. My record limit on the service is set to 100k, and some of the layers that do show unique values have >8k records. So, I'm stumped as to why the pesky three are not returning record values. Any comments?
... View more
10-21-2011
09:29 AM
|
0
|
0
|
723
|
POST
|
current environment: [INDENT]windows server 2008[/INDENT] [INDENT]arcserver 10sp2[/INDENT] [INDENT]arcsde sql express 10sp2[/INDENT] [INDENT]arcgis desktop 10sp2[/INDENT] deployment: i have deployed a map service with one layer which based on a route event source, which is sourced from an sde table. this renders nicely in arcgis desktop. i can view the rest service and feature layer reference. i can view the service in javascript and download it and view it in arcmap. issue: i have added this service and layer reference to a flex 2.4 application, but the route event source is not visible in flex. although there is no errors on page load. further details: if i export the rendered features to feature class in the same sde and then add the feature class and reference that feature class in my flex the layer will render and even allow me to add a feature access (for editing). however, the route event layer will not render in flex. any suggestions?
... View more
10-10-2011
01:03 PM
|
0
|
0
|
474
|
POST
|
I have an img raster which is projected into South_America_Lambert_Conformal_Conic. I am attempting to enable the "Use Earth Curvature" to calculate a Line of Sight or Viewshed. However, this option is disabled in both UIs. I have read that I need to establish a z-unit within the constraints of a projected coordinate system. My current projection system is "projected" and I have re-projected it and set the Z Coordinate system to EGM96_Geoid. Additionally, I made sure that my general environments were set to "Enable" z units. However, after all of this the options for "Use Earth Curvature" is still "grayed out"/"disabled". Please... any help or direction on what I need to fix to enable z-units within my raster dataset so that I can incorporate the curvature.
... View more
08-02-2010
10:19 AM
|
0
|
1
|
3085
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|