<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Validation of new records?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Validation of new records?</description>
  <pubDate>Mon, 13 Apr 2026 19:12:34 -700</pubDate>
  <lastBuildDate>Mon, 27 Jun 2011 17:18:21 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2748</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Validation of new records? :     Hi meeli, I was not able...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=11132#11132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2748<br /><strong>Posted:</strong> 27-Jun-2011 at 5:18pm<br /><br /><div>Hi meeli,</div><div> </div><div>I was not able to reproduce your issue here. Can you provide a test solution demonstrating the problem?</div><div> </div><div>Attached is my test solution. (using sdk datagrid) In it, after I add a new record, it validates properly if I delete data from a non-nullable field. (before or after the save)</div><a href="http://www.ideablade.com/forum/uploads/892/SLDataValidati&#111;n.zip" target="_blank"><div>uploads/892/SLDataValidation.zip</div></a><div></div><div></div><div>Kind regards,</div><div>   Silvio.</div>]]>
   </description>
   <pubDate>Mon, 27 Jun 2011 17:18:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=11132#11132</guid>
  </item> 
  <item>
   <title>Validation of new records? :   Hi mseeli,I am taking a look...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=10962#10962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2748<br /><strong>Posted:</strong> 13-Jun-2011 at 12:14pm<br /><br />Hi mseeli,<div>&nbsp;</div><div>I am taking a look at this and will follow up shortly.</div>]]>
   </description>
   <pubDate>Mon, 13 Jun 2011 12:14:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=10962#10962</guid>
  </item> 
  <item>
   <title>Validation of new records? : Can someone explain the following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=10913#10913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=945" rel="nofollow">mseeli</a><br /><strong>Subject:</strong> 2748<br /><strong>Posted:</strong> 08-Jun-2011 at 8:57am<br /><br />Can someone explain the following behavoiur?<div><br></div><div>In a DevForce Silverlight 4 application I have an entity that has a not nullable field called "Name" (amoung others)</div><div><br></div><div>In my Viewmodel I use a async query to get the data from the server and then I fill the results into an ObervableCollection&lt;T&gt; which is then bound to a Grid (Itemsource) on the view</div><div><br></div><div>That works fine, the records appear in the grid and I can edit them. When I delete the content of the Field "Name" it turns red and an error message pops up. Just as one would expect.</div><div><br></div><div>I then go and add a new Entity to my Collection, so that it ends up in the database</div><div><br></div><div>Manager ist my EntityManager, Persons is my ObservableCollection&lt;Person&gt; that is bound to the grid</div><div><br></div><div>I do something like this:</div><div><br></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;"><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><span ="Apple-style-span" style="color: black; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">var</span>&nbsp;et&nbsp;=&nbsp;<span style="color:blue;">new</span>&nbsp;</span><font ="Apple-style-span" color="#2b91af">Person</font>();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;et.Id&nbsp;=&nbsp;<span style="color: rgb43, 145, 175; ">Guid</span>.NewGuid();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;et.Name&nbsp;=&nbsp;<span style="color: rgb163, 21, 21; ">"New Name"</span>;</pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;">&nbsp;           Manager.AddEntity(et);</pre></pre></span></font><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Persons.Add(et);</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">The new Person shows up in the grid and when I do a SaveAsync later it also ends up in my database. </span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">What is strange and what I don't quite understand is that when I go and delete the content of the Field Name</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">in the newly created person - no error shows up</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">It seems a entity has to be saved first before it is validated.</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">What is the reason for this behaviour?</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">1. A bug in the DevExpress Grid that I am using?</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">2. A bug somewhere else in my code?</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">3. A bug in DevForce?</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">4. Or is this the normal behaviour and I have to do something extra to get&nbsp;</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">   it to validate a freshly added record?</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">can you enlighten me?</span></div>]]>
   </description>
   <pubDate>Wed, 08 Jun 2011 08:57:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2748&amp;PID=10913#10913</guid>
  </item> 
 </channel>
</rss>