|
POST
|
If you say that the attribute already contains the full URL and the value is of type Uri, then you were on the right track, just include square brackets:
<HyperlinkButton Content="{Binding [description]}" NavigateUri="{Binding [description]}" TargetName="_blank" />
... View more
12-06-2010
10:21 AM
|
0
|
0
|
2086
|
|
POST
|
Oh sorry I missed that. You are right the LINQ query will return an IEnumerable<Graphics>. So the QueryTask must return one graphic and you want to get the graphic with the same ID from the FeatureLayer, is that right? If this is the case the same code applies with slight modification:
string objId = MyFeatureLayer.LayerInfo.ObjectIdField;
object id = e.FeatureSet.Attributes[objId];
Graphic graphic = (from MyFeatureLayer.Graphics
where g.Attributes[objId] == id
select g).First();
if(Editor.EditVertices.CanExecute(graphic))
Editor.EditVertices.Execute(graphic)
While in debug mode, check if "id" has the expected value. Make sure that the Query OutFields include the ObjectIdField. Your FeatureLayer is OnDemand Mode? You can refer to this help doc to find which QueryMode to use: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer+QueryMode.html
... View more
12-06-2010
10:18 AM
|
0
|
0
|
1319
|
|
POST
|
Oh. If your attribute already contains the entire path, then you don't need to use StringFormat. This was only an example if you needed to search google for an attribute name. Sorry I did not make that clear 😛
... View more
12-06-2010
10:01 AM
|
0
|
0
|
2086
|
|
POST
|
The REST API does not support this type of query. Only the following parameters may be provided (even for 10.01) http://services.arcgisonline.com/ArcGIS/SDK/REST/query.html. You would have to use LINQ query to narrow the results in the ExecuteCompleted or simply retrieve the first feature and ignore the rest of the results.
... View more
12-06-2010
09:54 AM
|
0
|
0
|
533
|
|
POST
|
If you are working on SL4, post #6 on this thread answers your question 🙂 http://forums.arcgis.com/threads/7374-Binding-to-Hyperlink-NavigateURI-property. Also, to clarify the Binding statement. The DataContext for FeatureDataGrid is the graphic Attributes which is of type IDictionary<string, object>. You need to access this dictionary to get the value. Instead of "{Binding description}" you need to surround the key with accessor (square) brackets "{Binding [description]}".
... View more
12-06-2010
09:35 AM
|
0
|
0
|
2086
|
|
POST
|
Do you get this error when you add the layer index to the service URL? "ArcGISTiledMapServiceLayer does not support Multi-Layer Caches. Use an ArcGISDynamicMapServiceLayer instead or create a single fused cache." This error is expected. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer.html You might want to visit this help page to learn more about the differences in the layers. http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000019000000.htm
... View more
12-06-2010
09:28 AM
|
0
|
0
|
1080
|
|
POST
|
This is a related thread: http://forums.arcgis.com/threads/16609-do-I-have-to-change-spatial-reference-for-map-services-for-identify The other services belong to a different spatial reference, you need to specify that in code when creating your IdentifyParameters. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.IdentifyParameters~SpatialReference.html
... View more
12-06-2010
09:15 AM
|
0
|
0
|
923
|
|
POST
|
You are using this same sample but different service?http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing In this sample, the only time an attribute is accessed is after the RouteTask SolveCompleted. Does your service have the same attribute: "Total_Time"? Or does the error come from RouteTask Failed? (Were error should have been preceded by "Route Error".) Sometimes, to help identify the problem, running Fiddler with your application helps. Post #14 in this thread http://forums.arcgis.com/threads/14730-Area-And-Perimeter might help you look for information from Fiddler. You can see if these are the expected parameters to your request and also try them out in the web browser directly.
... View more
12-06-2010
07:29 AM
|
0
|
0
|
1384
|
|
POST
|
When you edit a feature returned by QueryTask, you are not affecting the same instance contained in your FeatureLayer. You need to edit features from your FeatureLayer.Graphics. Maybe make a comparison (LINQ query?) in the ExecuteCompleted event to get the actual graphic. Also, if you have to call EditVertices in code, know that this is only supported for Polyline and Polygon geometries.
string objId = MyFeatureLayer.LayerInfo.ObjectIdField;
Graphic graphic = from MyFeatureLayer.Graphics
where g.Attributes[objId] == e.FeatureSet.Attributes[objId]
select g;
if(Editor.EditVertices.CanExecute(graphic))
Editor.EditVertices.Execute(graphic)
To know if the edit is applied on your FeatureLayer, you can subscribe to the following events: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~EndSaveEdits_EV.html http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEditsFailed_EV.html If edits seem to complete and save properly but you are not able to see the changes, set DisableClientCaching to true. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~DisableClientCaching.html
... View more
12-05-2010
04:28 PM
|
0
|
0
|
1319
|
|
POST
|
Kindly look at the following related threads: http://forums.arcgis.com/threads/12798-reg-Pie-Chart http://forums.arcgis.com/threads/17949-Bar-chart-symbol-renderer
... View more
12-05-2010
03:57 PM
|
0
|
0
|
663
|
|
POST
|
From this sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify VB code has this:
Private Sub IdentifyTask_ExecuteCompleted(ByVal sender As Object, ByVal args As IdentifyEventArgs)
IdentifyDetailsDataGrid.ItemsSource = Nothing
If args.IdentifyResults IsNot Nothing AndAlso args.IdentifyResults.Count > 0 Then
IdentifyResultsPanel.Visibility = Visibility.Visible
ShowFeatures(args.IdentifyResults)
Else
IdentifyComboBox.Items.Clear()
IdentifyComboBox.UpdateLayout()
IdentifyResultsPanel.Visibility = Visibility.Collapsed
End If
End Sub
The code you posted changes Visibility of a different object ("DataGridScrollViewer"). I'm not sure where you copy that from.
... View more
12-03-2010
11:04 AM
|
0
|
0
|
1686
|
|
POST
|
You can check out this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClipFeatures When the job is completed, GetResultDataAsync is called with the job id and output field name.
... View more
12-03-2010
10:39 AM
|
0
|
0
|
733
|
|
POST
|
In your code-behind you have "DataGridScrollViewer", but your XAML does not declare this object. I think you meant to rename "IdentifyResultsPanel". If you have renamed this in code-behind, you have to rename it in your XAML too.
... View more
12-03-2010
10:35 AM
|
0
|
0
|
1686
|
|
POST
|
The DataGridScrollViewer is declared in your XAML? You have something like this? <Grid x:Name=" DataGridScrollViewer" ...
... View more
12-03-2010
09:16 AM
|
0
|
0
|
1686
|
|
POST
|
I'm not able to replicate the issue when combining these two samples: Zoom using Draw tool http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolBarWidget ConstrainExtentBehavior defined on XAML http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior
... View more
12-03-2010
08:19 AM
|
0
|
0
|
952
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 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 |
3 weeks ago
|