POST
|
I'm trying to use this example: Editing Tables in Feature Service with Silverlight 4 with Silverlight 5. I get the dataform populated but the new feature isn't getting saved. In the debugger, I can see the 'hasEdits' flag is false after the new graphic is added. Has anyone successfully edited a table using Silverlight 5?
... View more
09-06-2017
08:37 AM
|
0
|
0
|
717
|
POST
|
Saroj, Now the layer doesn’t display in the map. In the console I have this message: Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR 15 Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR Error: Unable to draw graphic (geometry:null, symbol:null): Error loading https://50.18.50.62:6080/arcgis/rest/services/FieldSeekerMobile3/FeatureServer/15?f=json&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback
... View more
07-27-2017
10:15 AM
|
0
|
1
|
433
|
POST
|
I'm new to JavaScript and the API. I'm trying to modify the default editing widget: Default editing widget | ArcGIS API for JavaScript 3.21 When I change the URL to my feature service, only one field displays in the form. I tried different features from my service and still only one field displays. The field that displays is the ‘Type ID Field’ in the layer. A snippet from my code: var operationsPointLayer = new FeatureLayer("http://50.18.50.62:6080/arcgis/rest/services/FieldSeekerMobile3/FeatureServer/15", { mode: FeatureLayer.MODE_ONDEMAND, outfields: ["*"] }); map.addLayers([operationsPointLayer]); map.infoWindow.resize(400, 300); function initEditing(event) { var featureLayerInfos = arrayUtils.map(event.layers, function (layer) { return { "featureLayer": layer.layer }; }); var settings = { map: map, layerInfos: featureLayerInfos }; var params = { settings: settings }; var editorWidget = new Editor(params, 'editorDiv'); editorWidget.startup(); //snapping defaults to Cmd key in Mac & Ctrl key in PC // specify 'snapKay' option only if you want a different key combination // for snapping map.enableSnapping(); } Any suggestions will be appreciated.
... View more
07-27-2017
09:39 AM
|
0
|
3
|
591
|
POST
|
Using the SmartEditor widget to create a polygon or line -- I need to store the polygon size (prefer in acres) and length of the line. Is there a way to get those values when the feature is saved?
... View more
07-13-2017
11:04 AM
|
0
|
0
|
455
|
POST
|
I'm getting this same error using Silverlight API 3.0, SL 5, with ArcGIS Server 10.1-- does anyone know how to fix? Is there a setting on the server that allows concurrent editing?
... View more
09-20-2013
08:36 AM
|
0
|
0
|
918
|
POST
|
Has anyone figured this out? I'm using API 3.0 for Silverlight with Silverlight 5. The server is ArcGIS 10.1. I'm getting this error when editing -- deleting or creating records. We thought ArcGIS for Server supported concurrent editing?
... View more
09-20-2013
08:18 AM
|
0
|
0
|
4506
|
POST
|
Discovered the AXF file was set to 'read only'. Changed that property and the layer loads.
... View more
03-14-2013
11:22 AM
|
0
|
0
|
178
|
POST
|
I???m using ArcPad 10.0.4 and I???ve tested on two devices: Trimble Juno 3B and Archer Field PC. I???m working with a map that has shapefile and AXF layers that are copied to a Storage Card. The shapefile layers load in ArcPad, but not the AXF layer. I tried loading the layer from Standard ArcPad, but I get a red circle with a slash. In the Forums, I found this posting that indicated that icon could be caused by SQLCE not being installed correctly. http://forums.arcgis.com/threads/12263-unable-to-select-.axf-files-in-arcPAD-using-GPS-unit I hard reset the devices and used Arcpad Deployment Manager to install Microsoft SqlServer 2005 Compact Edition. I still can???t load the AXF file from the storage card. I moved the AXF file to the MyDocuments folder -- and then I could load it. Why won???t the AXF layer load from the Storage Card? Any help is appreciated. Chris
... View more
02-28-2013
12:50 PM
|
0
|
1
|
2041
|
POST
|
Aaron, I can't tell from your posting if you have two separate script files. Have you tried using a global variable Application.UserProperties("Variablename") that you define in the first script? Set the value in the child form and you should be able to read it when the child attachment form closes. In one script, I have defined: Application.UserProperties("SRLayerName") = "SRLayerName" In another script, I use that variable: If LCaseCompare(Application.Map.SelectionLayer.Name, Application.UserProperties("SRLayerName")) Then g_ServiceReqTreatment = True End If This will also work if both forms are in one script-- just define the variable as global. Is there a reason why you don't want to get the data from the record for the child feature? Can you query the child feature based on the ID? Hope this helps. Chris
... View more
02-28-2013
12:45 PM
|
0
|
0
|
286
|
POST
|
Figured out how to select feature. But now the feature layer is not displaying the feature when the selection is cleared. Code to select feature: MapGraphic locGraphic = new MapGraphic(); locGraphic.Symbol = new ESRI.ArcGIS.Mobile.FeatureCaching.SimpleMarkerSymbol(Color.Purple, 3, Color.Purple, 3, SimpleMarkerStyle.Circle); locGraphic.Geometry = featureDataRow.Geometry; frmMap.selectionMapAction.SelectionFeatureSources.Clear(); frmMap.selectionMapAction.SelectionFeatureSources.Add(featureLayer); frmMap.selectionMapAction.SelectionGraphicLayer.Graphics.Add(locGraphic; This code clears the selection graphic but is also causing the feature layer graphic to not display. frmMap.selectionMapAction.SelectionFeatureSources.Clear(); frmMap.selectionMapAction.SelectionFeatureSources.Add(featureLayer); frmMap.selectionMapAction.SelectionGraphicLayer.Graphics.Add(locGraphic); Does anyone know how to do this so the features from the feature source layer display when the graphich layer is cleared?
... View more
12-03-2012
01:44 PM
|
0
|
0
|
160
|
POST
|
The application runs on a mobile device so I'm developing using: Visual Studio 2008 SP1 and .NET Compact Framework v3.5.
... View more
11-29-2012
01:49 PM
|
0
|
0
|
236
|
POST
|
We are updating from Windows Mobile 10 to Runtime SDK for Mobile 3.1. In our Mobile 10 application, the user can search for a feature by selecting attributes from a combo box. The results display in a listview. The user can select an item and click on a menu item to zoom to the selected feature on the map. In Mobile 10, the code behind the menu zoom click event sets the feature as selected on the map, then zooms the map to an envelope created using the feature geometry. The code to select the feature is: SelectionGraphicLayer lyr = _map.MapGraphicLayers.GetFirstLayerOfType(typeof(SelectionGraphicLayer)) as SelectionGraphicLayer; lyr.SelectedGeometries.Add(featureDataRow.Geometry); I'm having trouble setting a feature as selected using the RuntimeSDK v3.1. In v3.1, the SelectionGraphicLayer is a MapGraphicLayer which takes Graphics (not geometries). Graphics is a read-only list. So I can't add to the SelectionGraphicLayer like I did in Mobile 10. public IList<MapGraphic> Graphics {get;} If you are selecting features in code, please provide an example of how to do it.
... View more
11-29-2012
01:26 PM
|
0
|
1
|
2601
|
POST
|
Update to post-- I'm using the Runtime SDK for Mobile v3.1, not v10.1. The FeatureLayerSyncAgent doesn't seem to have the features ordered in the same way as the mobile cache. I tried to get the index based on the mobile cache: mobileCache.FeatureSources.IndexOf(_mobileCache.FeatureSources[layerName])] But the index order appears to be reversed--the last item in the MobileCache matches the first item in the featureSyncAgent. In the code, we've customized sync to download only certain features, but we accessed those by name in Mobile 10. Has anyone else run into this issue?
... View more
11-29-2012
11:49 AM
|
0
|
0
|
236
|
POST
|
In ArcGIS Mobile 10, the SyncAgentCollection could be indexed by layer name. we have code to access the feature layer sync agents, like this: FeatureLayer ftrLayer = (FeatureLayer)lyr; FeatureLayerSyncAgent flsa = _mobileCacheSyncAgent.SyncAgents[ftrLayer] as FeatureLayerSyncAgent; I can't find anything similar in the RunTime SDK for Mobile 10.1 -- the FeatureSyncAgents is a generic collection and appears to be accessible only by index. Is there a way to access the FeatureSyncAgents using the layerName as we've done in Mobile10? Sorry if I'm posting in the wrong forum. I posted here because I didn't find a forum for the Runtime SDK for Mobile 10.1 on the forums list. Please let me know if it exists. Chris
... View more
11-26-2012
06:52 AM
|
0
|
3
|
3063
|
POST
|
I have an application written in VB Script that loads raster files to the map. The problem is the background displays as black or white strips. I want to re-set the display background to no color -- in code after the raster is loaded. I've seen an attribute 'transparencycolor', but I can't find anything on how to set this using VBScript. In ArcMap, I can set the Display Background value to match the raster and then select As 'No Color'. But this won't work for our customers. Is there a way to do something similar in code? Following is the subroutine that loads the layers. After this method is done, I want to check for raster-type layers and set the transparency. Any help is appreciated. Chris S. Sub LoadMapLayers() 'Get the path to the current map document and load all the shapefiles Dim mapPath Dim layerFile, arrLayerFiles, newLayer Dim layerTypeList, curLayerType, curLayerFile 'Get the data path from the map mapPath = GetFilePath(Application.Map.FilePath) 'Iterate through the file type list to check for map layers to add layerTypeList = Application.UserProperties("RasterFileTypeList") If Len(Trim(layerTypeList)) > 0 Then 'Create a new file to check for map layers to add Set layerFile = Application.CreateAppObject("File") End If 'Loop through each item While Len(Trim(layerTypeList)) > 0 'Get the next item curLayerType = TokenString(layerTypeList, ",") 'Check the map path for matching file types arrLayerFiles = layerFile.FindFiles(WithTrailingBackslash(mapPath) & "*" & curLayerType) 'Iterate the array of files and add each one to the map If VarType(arrLayerFiles) <> 0 Then For Each curLayerFile In arrLayerFiles 'Add the layer to the map Set newLayer = Application.Map.AddLayerFromFile(WithTrailingBackslash(mapPath) & curLayerFile) If Not newLayer Is Nothing Then 'Check the layer type to see if it's a raster and needs to be moved to the bottom If LayerIsRaster(newLayer) Then MoveLayerToBottom(newLayer.Name) End If Next End If Wend On Error Resume Next Set layerFile = Nothing 'Done, refresh the map RefreshMap(False) End Sub
... View more
09-06-2012
12:18 PM
|
0
|
0
|
758
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|