<?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: Can't get the coded values of domain through a feature layer. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340093#M8764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you visit the FeatureLayer URL from your web browser, do you see coded values similar to this? &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is empty there too, then maybe the issue is with your service. I think these are the steps you do for creating a coded value domain: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 18:41:43 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-02-03T18:41:43Z</dc:date>
    <item>
      <title>Can't get the coded values of domain through a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340090#M8761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a feature layer and associated it with a featureDataGrid for attributes edit. One field (field type is text) in this feature layer has domain setting with several coded values. But I can't get the domain values show in the field of this featureDataGrid. And I debug and find that the number of the coded values in this domain setting of the feature layer's field is 0 while debugging. It seems that the domain info is not passed corrected through feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, by setting up the domain, I can see this domain setting in ArcMap while started editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your input in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 15:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340090#M8761</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-02-03T15:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the coded values of domain through a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340091#M8762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure if you are talking about setting up your service with coded value domain attribute correctly. If so, this might help: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000r0000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000r0000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To know if you have set this up correctly, you can wire up to the FeatureLayer's Initialized event and check for the FeatureLayer's LayerInfo.Fields property. Each field will have these values: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_properties.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_properties.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FeatureLayer l = sender as FeatureLayer;
foreach (var f in l.LayerInfo.Fields)
{
 if (f.Domain is CodedValueDomain)
 {
&amp;nbsp; CodedValueDomain cvd = f.Domain as CodedValueDomain;
&amp;nbsp; foreach (var item in cvd.CodedValues)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; //TODO: check for item.Key and item.Value
&amp;nbsp; }
 }
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:05:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340091#M8762</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the coded values of domain through a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340092#M8763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Jennifer. However, in debug mode by your code method, I can see that domain is assigned to the right field, but there is no codedvalue in this domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, do I must create a subtype and then assign this domain to the field? Currently, I don't use subtype for my SDE feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 18:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340092#M8763</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-02-03T18:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the coded values of domain through a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340093#M8764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you visit the FeatureLayer URL from your web browser, do you see coded values similar to this? &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is empty there too, then maybe the issue is with your service. I think these are the steps you do for creating a coded value domain: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 18:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340093#M8764</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-03T18:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the coded values of domain through a feature layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340094#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Jennifer. I resolved this issue. It's really good to know that I can monitor the domain coded values in the REST service URL. I just forgot to restart the service after I changed the domain setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a great afternoon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When you visit the FeatureLayer URL from your web browser, do you see coded values similar to this? &lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;If it is empty there too, then maybe the issue is with your service. I think these are the steps you do for creating a coded value domain: &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_a_new_coded_value_domain/001s00000004000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 20:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-t-get-the-coded-values-of-domain-through-a/m-p/340094#M8765</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-02-03T20:05:42Z</dc:date>
    </item>
  </channel>
</rss>

