|
POST
|
That is correct, QueryTask results only include fields that are specified in the Query.OutFields. Are you using DataGrid or FeatureDataGrid? How does your binding statement look like? You can probably set a FallBackValue so that this does not fail. {Binding Attributes[STATE_NAME], FallbackValue=NotAvailable}
... View more
12-14-2011
11:17 AM
|
0
|
0
|
440
|
|
POST
|
If you are using Editor.EditVertices, I don't see a reason why edits are not saved since geometries are first simplified before it overwrites your geometry. If you are using EditGeometry, you may need to simplify the geometry first: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify. Kindly check Fiddler when saving this edit, SpatialReference on Geometry might be missing. If so, we have logged this bug in EditGeometry.
... View more
12-14-2011
10:50 AM
|
0
|
0
|
1232
|
|
POST
|
Are you talking about this printing sample? http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap. If yes, we only support symbols that the REST API supports http://atlas.resources.ca.gov/ArcGIS/SDK/REST/symbol.html.
... View more
12-14-2011
10:44 AM
|
0
|
0
|
681
|
|
POST
|
Have you looked at this SDK sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave.
<Button Command="{Binding Add}" Content="Add Polygon" Margin="2"
ToolTipService.ToolTip="Civil Disturbance">
<Button.CommandParameter>
<sys:Int32>10101</sys:Int32>
</Button.CommandParameter>
</Button>
The service defines Types (see 10101) http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2
... View more
12-14-2011
10:41 AM
|
0
|
0
|
560
|
|
POST
|
If FeatureLayer.SaveEditsFailed, you cannot expect the edits to push through the service. Kindly use Fiddler to monitor the web request/response, may be your geometry type or attribute value data type does not match what the service expects. Have you tried using Editor.Add or TemplatePicker instead? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget. It is possible to add graphics in code-behind but you may be missing attributes that need to be set. This seems related: http://forums.arcgis.com/threads/44168-Adding-a-point-to-a-featurelayer-using-coordinates
... View more
12-14-2011
10:35 AM
|
0
|
0
|
400
|
|
POST
|
We don't have a public method to calculate angle in the API. You can however, use Math.Atan2() http://en.wikipedia.org/wiki/Atan2
... View more
12-14-2011
10:26 AM
|
0
|
0
|
544
|
|
POST
|
It's hard to tell what the issue is based on your description. What you can do is run Fiddler while your Silverlight app is executing the Geoprocessor task. Copy the parameters (Fiddler > Inspectors > WebForms) and submit job from your web browser. See if you get the same result.
... View more
12-14-2011
10:16 AM
|
0
|
0
|
951
|
|
POST
|
What was the error message? I am not able to reproduce this. Can you check that the FeatureSet returned from your query match geometry type and attributes of your FeatureLayer? Also, are you adding features after the layer has been initialized?
... View more
12-14-2011
10:07 AM
|
0
|
0
|
773
|
|
POST
|
The code you posted does not seem to be from ArcGIS API for Silverlight. Kindly look at this SDK sample and documentation. ArcGISDynamicMapServiceLayer allows you to generate image on the fly. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DynamicMap http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.html If you are working with 10.1 service (ArcGIS API for Silverlight 3.0 Beta 1), ArcGISDynamicMapServiceLayer has been extended so that you can also re-order the layers, apply different renderer, etc.http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#DynamicLayerXAML
... View more
12-14-2011
09:56 AM
|
0
|
0
|
611
|
|
POST
|
When accessing a secured service from Silverlight application, your web browser handles the authentication process. Please try the steps from this blog post first to identify the cause for blank layers: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
... View more
12-14-2011
09:51 AM
|
0
|
0
|
480
|
|
POST
|
If you are using select tools from EditorWidget, you can subscribe to EditCompleted event.
private void EditorWidget_EditCompleted(object sender, Editor.EditEventArgs e)
{
int total = 0;
foreach (var edit in e.Edits)
{
if (edit.Graphic.Selected)
total += (int)edit.Graphic.Attributes["ftype"];
}
}
Or you can use FeatureLayer.PropertyChanged event. Note, however that this will be hit every time a graphic selection state changes.
private void FeatureLayer_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
var l = sender as FeatureLayer;
if (e.PropertyName == "SelectedGraphics")
{
var total = (from g in l.SelectedGraphics
select (int)g.Attributes["ftype"]).Sum();
}
}
... View more
12-14-2011
09:47 AM
|
0
|
0
|
1479
|
|
POST
|
Thank you for reporting this. I was able to reproduce and put in a bug for it. We'll try to fix this in future releases.
... View more
12-14-2011
09:08 AM
|
0
|
0
|
469
|
|
POST
|
If you want to associate default values or sub types to a specific attribute, you can look at the following documentation to see modify the service. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Associating_default_values_and_domains_with_tables_and_feature_classes/001s00000009000000/ http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_subtypes/005r00000003000000/ If solution is only on client-side, you can subscribe to Graphic.AttributeValueChanged event. You can also subscribe to FeatureDataForm.EditEnded to know when changes to attributes are applied.
... View more
12-14-2011
08:44 AM
|
0
|
0
|
531
|
|
POST
|
That is correct, EditorWidget's display attribute show an instance of FeatureDataForm, events like EditEnded are not accessible from here. You can download source code to the toolkit from here: http://esrisilverlight.codeplex.com/. If you want to change this behavior, you can add update the EditorWidget style by following these steps: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/28/Localizing-ArcGIS-Controls.aspx. You can then implement a different button click event for displaying attributes by creating an instance of FeatureDataForm, this will give you access to its events.
... View more
12-14-2011
08:31 AM
|
0
|
0
|
561
|
|
POST
|
Have you looked at this sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid I'm not sure I understand your code-snippet. You are using ComboBox to filter what? graphic attributes? In this case, you can use FeatureDataGrid.FilterSource property. Or is FeatureDataGrid.GraphicsLayer property determined at run-time? This might be related thread: http://forums.arcgis.com/threads/35568-Binding-Query-Result-To-FeatureDataGrid
... View more
12-14-2011
08:23 AM
|
0
|
0
|
1348
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 12:13 PM | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-13-2026
09:07 AM
|