<?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: Validation on FeatureDataForm in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113776#M2847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes this is correct, FeatureDataForm.IsValid property is set when an error is returned from updating a field and/or clicking apply. FeatureDataForm.EditEnded event is raised only if IsValid and updates to the attributes were commited successfully.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 16:13:02 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-01-18T16:13:02Z</dc:date>
    <item>
      <title>Validation on FeatureDataForm</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113774#M2845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a FeatureDataForm that has a date, text, and integer field for testing puposes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the FDF to close as soon as the user clicks APPLY assuming that the form passes validation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I bypass closing the form on "EditEnded" and type a letter in the integer textbox I can see the red indicator telling me that I have a data input error...hovering over it I it tells me that it is requiring an integer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I know its working fine....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MY question is how can I test the validation,which will run when I hit the APPLY button, so I can close the FDF automatically when the Validation passes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this but getting errors on the .ValidateItem not a member of ESRI.ArcGIS.Client.Toolkit.FeatureDataForm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If FeatureDataForm.ValidateItem() Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' can continue 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' cancel - not valid 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:29:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113774#M2845</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2012-01-17T15:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on FeatureDataForm</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113775#M2846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thinking I can use the FeatureDataForm.IsValid event???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems this is working for me...unless anyone has any other suggestions..&lt;/SPAN&gt;&lt;BR /&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; If FeatureDataForm.IsValid Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MessageBox.Show("Good")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataFormBorder.Visibility = Visibility.Collapsed
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CloseButton1.Visibility = Visibility.Collapsed
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderBox.Visibility = Visibility.Visible
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataForm.IsReadOnly = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MessageBox.Show("Bad")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113775#M2846</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2021-12-11T06:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on FeatureDataForm</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113776#M2847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes this is correct, FeatureDataForm.IsValid property is set when an error is returned from updating a field and/or clicking apply. FeatureDataForm.EditEnded event is raised only if IsValid and updates to the attributes were commited successfully.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/validation-on-featuredataform/m-p/113776#M2847</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-01-18T16:13:02Z</dc:date>
    </item>
  </channel>
</rss>

