<?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: FeatureDataForm refresh after coded value domain change in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705004#M18133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Jennifer, but I'm reporting a different problem.&amp;nbsp; I am not modifying the attributes of a feature, I'm modifying a column's coded value domain.&amp;nbsp; For example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FeatureLayer ptFeatureLayer = map1.Layers["pointFeatureLayer"] as FeatureLayer;
foreach (Field field in ptFeatureLayer.LayerInfo.Fields)
{
 if (field.Name.ToLower() == "habitat")
 {
&amp;nbsp; CodedValueDomain ptCVD = field.Domain as CodedValueDomain;
&amp;nbsp; ptCVD.CodedValues.Clear();
&amp;nbsp; ptCVD.CodedValues.Add("test1", "test1");
&amp;nbsp; ptCVD.CodedValues.Add("test2", "test2");
&amp;nbsp; // how to update the featuredataform combobox for the new CVD values?&amp;nbsp;&amp;nbsp; 
&amp;nbsp; break;
 }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:38:03 GMT</pubDate>
    <dc:creator>MikeDuppong</dc:creator>
    <dc:date>2021-12-12T05:38:03Z</dc:date>
    <item>
      <title>FeatureDataForm refresh after coded value domain change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705002#M18131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm programmatically modifying the values of a coded value domain, and after doing so, can't seem to get the FeatureDataForm to refresh so the combobox displays the new set of values.&amp;nbsp; Is there a trick?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 17:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705002#M18131</guid>
      <dc:creator>MikeDuppong</dc:creator>
      <dc:date>2011-11-11T17:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataForm refresh after coded value domain change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705003#M18132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for reporting this. I was able to reproduce with this sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm&lt;/A&gt;&lt;SPAN&gt;. I added a Button with this code in the click event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void Button_Click(object sender, RoutedEventArgs e)
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; var g = MyFeatureDataForm.GraphicSource;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.Attributes["req_type"] = "Graffiti Complaint �?? Private Property"; //updates fine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g.Attributes["status"] = (Int16)1; // fails to update
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can download source code for FeatureDataForm &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://esrisilverlight.codeplex.com/&lt;/A&gt;&lt;SPAN&gt;and make changes there or use your own user control. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added the following TextBlock with DataContext pointing to FeatureDataForm.GraphicSource and the Binding statement here allows it to be updated when the attribute value is changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBlock x:Name="MyTB" Text="{Binding Attributes[status]}"/&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705003#M18132</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T05:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataForm refresh after coded value domain change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705004#M18133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Jennifer, but I'm reporting a different problem.&amp;nbsp; I am not modifying the attributes of a feature, I'm modifying a column's coded value domain.&amp;nbsp; For example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;FeatureLayer ptFeatureLayer = map1.Layers["pointFeatureLayer"] as FeatureLayer;
foreach (Field field in ptFeatureLayer.LayerInfo.Fields)
{
 if (field.Name.ToLower() == "habitat")
 {
&amp;nbsp; CodedValueDomain ptCVD = field.Domain as CodedValueDomain;
&amp;nbsp; ptCVD.CodedValues.Clear();
&amp;nbsp; ptCVD.CodedValues.Add("test1", "test1");
&amp;nbsp; ptCVD.CodedValues.Add("test2", "test2");
&amp;nbsp; // how to update the featuredataform combobox for the new CVD values?&amp;nbsp;&amp;nbsp; 
&amp;nbsp; break;
 }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705004#M18133</guid>
      <dc:creator>MikeDuppong</dc:creator>
      <dc:date>2021-12-12T05:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataForm refresh after coded value domain change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705005#M18134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The FeatureDataForm only works off the Domains that come from the FeatureLayer.LayerInfo. You have to add the new CodedValueDomain to your service then republish the service with the additional CodedValueDomains.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705005#M18134</guid>
      <dc:creator>ChristopherHill</dc:creator>
      <dc:date>2011-11-14T15:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataForm refresh after coded value domain change</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705006#M18135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply, Chris.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, republishing the service is impractical for our application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Investigating SOE's as a workaround.&amp;nbsp; If I have no luck there, I will have to abandon the Silverlight API, which would be a bummer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 16:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredataform-refresh-after-coded-value-domain/m-p/705006#M18135</guid>
      <dc:creator>MikeDuppong</dc:creator>
      <dc:date>2011-11-14T16:10:41Z</dc:date>
    </item>
  </channel>
</rss>

