<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to obtain feature ID in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211247#M5276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For Silverlight 4, you need API v2.0 and up. Yeah, check that the project references are correct and that they point to the proper file location. Once you have verified that your project has the proper version and files, maybe you just need to add imports statement:&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Imports ESRI.ArcGIS.Client&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I think I got the right file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGISSilverlightWPF20.exe filesize 7193 kb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reinstalled it anyway with no change in the result. Is there a post install of some kind needed to integrate it with VWD?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 21:45:40 GMT</pubDate>
    <dc:creator>DonFreeman</dc:creator>
    <dc:date>2010-11-29T21:45:40Z</dc:date>
    <item>
      <title>How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211231#M5260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a sample around that shows how to obtain the feature ID (place it into a variable) when the user clicks on a point feature? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 18:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211231#M5260</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-16T18:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211232#M5261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kindly refer to this documentation: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~ObjectIdField.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~ObjectIdField.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If LayerInfo is retrieved after the layer has initialized so be sure to check that layer.LayerInfo is not null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code retrieves the feature ID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var id = graphic.Attributes[layer.LayerInfo.ObjectIdField];&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 20:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211232#M5261</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-16T20:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211233#M5262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Kindly refer to this documentation: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~ObjectIdField.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~ObjectIdField.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If LayerInfo is retrieved after the layer has initialized so be sure to check that layer.LayerInfo is not null. &lt;BR /&gt;&lt;BR /&gt;The following code retrieves the feature ID:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var id = graphic.Attributes[layer.LayerInfo.ObjectIdField];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jenn. I'm afraid that as a beginner I need a little more help than that provides. Working in VB the line &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public ReadOnly Property ObjectIdField As String
 &lt;/PRE&gt;&lt;SPAN&gt; doesn't tell me anything about how to make the assignment. Something like this is needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myVariable = ????&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;messagebox.show("myVarable = " + myVariable.tostring)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Allso it tells me nothing about the requirements of the service (if there are any). My features are shapefile based.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211233#M5262</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211234#M5263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, the code snippet and documentation I provided is for FeatureLayer, where ObjectIDField will be known after the layer is Initialized and LayerInfo is retrieved. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you saving the graphic to your database? How is the object ID created? Do you save the object id as part of the attributes? If yes, then however you named this field, is also the key you used in getting the attribute value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same code snippet as my previous post, except you replace the key "layer.LayerInfo.ObjectIdField" with your own name for your object id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 22:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211234#M5263</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-16T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211235#M5264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm. . . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure I can answer those questions. (Still a very basic beginner here.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer is based on a shapefile ( we absolutely are not ready to deal with geodatabase yet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The purpose of the project is to allow the user to select a point and edit some (but not all) of the data associated with the point. The data will not be in the attribute table, but will instead be in a related child table (1 to many relationship). So, my thought was to simply obtain the FID of the point and then programmatically construct a query to the related table that will display the records to be edited in some sort of datagrid. The fields to be displayed and edited will be dynamic, hence the need to control it with code rather than a standard tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The application is basically a volunteer signup form where users will signup to monitor an intersection for one of the available timeslots during the day. Once a timeslot has been taken it will not be available to other users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my first attempt to work with data in Silverlight so even that is a daunting challenge. Have you a sample that works anything like this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 13:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211235#M5264</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-17T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211236#M5265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry I have more questions than answers. I wanted to know how you load shapefiles to your map?&amp;nbsp; Does it have a corresponding .dbf that holds the attributes of the feature?&amp;nbsp; I imagine that this is where you'd keep record of the object ID.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How you create and save the object ID is important to know because it also dictates how you can retrieve them. You can use the graphic's Attributes to hold this information (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It says that this is read-only property meaning you cannot create a new instance, but you can update the existing instance. You can do something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Graphic g = new Graphic()
{
// set Geometry property from ShapeFile.
}
var objectId; // retrieve from DBF file (?)
g.Attributes["objectid"] = objectId; // to save object id onto an attribute field
var oid = g.Attributes["objectid']; // to retrieve the object id from an attribute field.
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that in this example, I just used "objectid" as my key for the field. You can name this as you wish but be mindful that the key you used to save is the same key you need to use to retrieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shapefile is actually an unfamiliar territory for me but I found some links that might be useful for your project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://esrislcontrib.codeplex.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://esrislcontrib.codeplex.com/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/6425-Export-to-shapefile-other-format" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/6425-Export-to-shapefile-other-format&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/13680-Download-Shapefiles-Similar-to-the-Extract-Service-in-ArcIMS" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/13680-Download-Shapefiles-Similar-to-the-Extract-Service-in-ArcIMS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other developers are welcome to provide additional help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211236#M5265</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211237#M5266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm sorry I have more questions than answers. I wanted to know how you load shapefiles to your map?&amp;nbsp; Does it have a corresponding .dbf that holds the attributes of the feature?&amp;nbsp; I imagine that this is where you'd keep record of the object ID.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;How you create and save the object ID is important to know because it also dictates how you can retrieve them. You can use the graphic's Attributes to hold this information (&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;It says that this is read-only property meaning you cannot create a new instance, but you can update the existing instance. You can do something like:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Graphic g = new Graphic()
{
// set Geometry property from ShapeFile.
}
var objectId; // retrieve from DBF file (?)
g.Attributes["objectid"] = objectId; // to save object id onto an attribute field
var oid = g.Attributes["objectid']; // to retrieve the object id from an attribute field.
&lt;/PRE&gt;&lt;BR /&gt;Note that in this example, I just used "objectid" as my key for the field. You can name this as you wish but be mindful that the key you used to save is the same key you need to use to retrieve.&lt;BR /&gt;&lt;BR /&gt;Shapefile is actually an unfamiliar territory for me but I found some links that might be useful for your project.&lt;BR /&gt;&lt;A href="http://esrislcontrib.codeplex.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://esrislcontrib.codeplex.com/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/6425-Export-to-shapefile-other-format" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/6425-Export-to-shapefile-other-format&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/13680-Download-Shapefiles-Similar-to-the-Extract-Service-in-ArcIMS" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/13680-Download-Shapefiles-Similar-to-the-Extract-Service-in-ArcIMS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Other developers are welcome to provide additional help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jenn - I'm just getting back to this. The "shapefile" is actually a group of files that contain the feature geometry, projection, metadata, and other info. The attributes are contained in a traditional *.dbf file with a field 'FID' (FeatureID) as the unique identifier that links the feature to the attributes. The shapefile or layer is placed on the map via the service with code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;lt;esri:Map x:Name="MyMap" Grid.RowSpan="2" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map.Layers&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer ID="Intersections" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://198.182.104.173/ArcGIS/rest/services/Intersection_Test/MapServer" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map.Layers&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt; --&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; In this case its a point layer. What I want to do is click a point and capture the FID for that point so I can use it to query a separate but related table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211237#M5266</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T10:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211238#M5267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to be clear: The Client APIs does not support working with Shapefiles. You will need to publish your data to ArcGIS Server first. After that, it doesn't' really matter how the data is stored as long as it is server out using ArcGIS Server. When you are at that point, you will be using a FeatureLayer as Jennifer was getting at.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 18:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211238#M5267</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-11-23T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211239#M5268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just to be clear: The Client APIs does not support working with Shapefiles. You will need to publish your data to ArcGIS Server first. After that, it doesn't' really matter how the data is stored as long as it is server out using ArcGIS Server. When you are at that point, you will be using a FeatureLayer as Jennifer was getting at.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morton -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I understand that the map needs to be delivered as a service from the server. That is what I have. (See the markup in my previous post.) What I don't understand (very much a beginner) is how or where to go from here. I can click the map point and obtain the datagrid but how can I pick out the FID from it? (and preferrably not display it)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 19:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211239#M5268</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-23T19:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211240#M5269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since you already have a map service, can you use FeatureLayer instead? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/help/Creating_featurelayer.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/help/Creating_featurelayer.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a MouseLeftButtonDown you can subscribe to, on the Feature Layer itself, this has GraphicMouseButtonEventArgs and you can easily use e.Graphic to identify the feature that was clicked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 15:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211240#M5269</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211241#M5270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jenn -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My layer displays OK as a MapDynamicServiceLayer but doesn't display as a featureService layer. Apparently the featureService layer requires the data to be taken from a geodatabase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I am puzzled because I can Identify and see the data I want, or I can load a featuredataform as if I was going to edit (but I cannot edit) and also see the data I need, why can't I just parse that data into a variable? Seems like this would be a fairly basic thing to do without requireing the jump into geodatabases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 17:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211241#M5270</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-29T17:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211242#M5271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using FeatureDataForm, then you must be using FeatureLayer, because FeatureDataForm need to set its FeatureLayer property in order to display attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 18:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211242#M5271</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211243#M5272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are using FeatureDataForm, then you must be using FeatureLayer, because FeatureDataForm need to set its FeatureLayer property in order to display attributes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I'm not using FeatureDataForm. I was just blindly copying the ESRI sample and combining the featureDataForm with a DynamicMapServiceLayer. btw - It does work to bring up the data but doesn't allow editing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 19:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211243#M5272</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-29T19:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211244#M5273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you will still get compile error because the FeatureLayer property would expect only FeatureLayer type. It is however, possible to create a FeatureLayer from a map service (maybe this is what you were doing). It is true that FeatureDataForm will show read-only fields if the FeatureLayer comes from a map service. You will not be allowed to edit, but you will be allowed to retrieve the feature ID, if this is part of your feature Attributes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 19:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211244#M5273</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T19:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211245#M5274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think you will still get compile error because the FeatureLayer property would expect only FeatureLayer type. It is however, possible to create a FeatureLayer from a map service (maybe this is what you were doing). It is true that FeatureDataForm will show read-only fields if the FeatureLayer comes from a map service. You will not be allowed to edit, but you will be allowed to retrieve the feature ID, if this is part of your feature Attributes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well . . . You were right. I went back to my previous attempt and it was in fact a FeatureLayer that I was playing with. Here is the code &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:FeatureLayer ID="PointLayer"
&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://198.182.104.173/ArcGIS/rest/services/Intersection_Test/MapServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="True" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mode="OnDemand"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectionColor="#FFFFFF00"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields="*" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, when I copy this exact code into my current project I get 2 errors that say "Mode" and "SelectionColor" are not properties of Feature Layer. The only difference is the current project is in Silverlight 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the codebehind &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private void FeatureLayer_MouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs args)&lt;/PRE&gt;&lt;SPAN&gt; tells me I may be missing a reference because GraphicMouseButtonEventArgs cannot be found. I have all the same references (I think) but I did convert from VB to C#. So, before I can go further I need to get these fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211245#M5274</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-11T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211246#M5275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For Silverlight 4, you need API v2.0 and up. Yeah, check that the project references are correct and that they point to the proper file location. Once you have verified that your project has the proper version and files, maybe you just need to add imports statement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Imports ESRI.ArcGIS.Client&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 21:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211246#M5275</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T21:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211247#M5276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For Silverlight 4, you need API v2.0 and up. Yeah, check that the project references are correct and that they point to the proper file location. Once you have verified that your project has the proper version and files, maybe you just need to add imports statement:&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Imports ESRI.ArcGIS.Client&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I think I got the right file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGISSilverlightWPF20.exe filesize 7193 kb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reinstalled it anyway with no change in the result. Is there a post install of some kind needed to integrate it with VWD?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 21:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211247#M5276</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-29T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211248#M5277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is all you need for installing the API. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 21:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211248#M5277</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T21:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211249#M5278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is all you need for installing the API. &lt;A href="http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. That confirms that I had the right file. But somehow my references were pointing to ver 1.1. So I deleted them and rereferenced the correct ones. I now have a FeatureLayer with a MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp" event. Can you show me how to capture the attribute in this event?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 13:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211249#M5278</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2010-11-30T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain feature ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211250#M5279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do this by listening to the FeatureLayer_MouseLeftButtonUp event handler. Use the following code snippet to get the attribute collection of the Graphic object that has been clicked by the user:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;IDictionary&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;object&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&amp;gt; attributes = e.Graphic.Attributes;&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-obtain-feature-id/m-p/211250#M5279</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2021-12-11T10:24:05Z</dc:date>
    </item>
  </channel>
</rss>

