<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WCF RIA Services</title><link>http://forums.silverlight.net/forums/53.aspx</link><description>A forum for discussing the client and server pieces that make up the WCF RIA Services framework for Silverlight</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Entity validation problem</title><link>http://forums.silverlight.net/forums/thread/240345.aspx</link><pubDate>Wed, 01 Jul 2009 17:06:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240345</guid><dc:creator>sapientcoder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240345.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=240345</wfw:commentRss><description>&lt;p&gt;Thanks! I took your suggestion and tried XAML Power Toys, and that add-in definitely makes things easier. Now the prospect of going without the DataForm doesn&amp;#39;t seem as daunting.&lt;/p&gt;
&lt;p&gt;The only&amp;nbsp;issue left to solve now is how to duplicate some of the nice eye candy that the DataForm provides&amp;nbsp;when handling validation errors. I&amp;#39;ll have to dig in with Reflector and figure out what styles, etc. it&amp;#39;s using to provide those nice visual effects.&lt;/p&gt;</description></item><item><title>Re: Entity validation problem</title><link>http://forums.silverlight.net/forums/thread/240279.aspx</link><pubDate>Wed, 01 Jul 2009 14:12:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240279</guid><dc:creator>ColinBlair</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240279.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=240279</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;sapientcoder:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Also, just for what it&amp;#39;s worth to anyone reading this, we&amp;#39;re getting ready to ditch the DataForm control and see how difficult it really is to just write our own data entry forms (or use 3rd-party controls) and handle validation ourselves.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;You should checkout Karl Shifflett&amp;#39;s &lt;a class="" href="http://karlshifflett.wordpress.com/xaml-power-toys/"&gt;XAML Power Toys&lt;/a&gt; for generating business forms, it is what I use in my production systems.&lt;/p&gt;</description></item><item><title>Re: Entity validation problem</title><link>http://forums.silverlight.net/forums/thread/240268.aspx</link><pubDate>Wed, 01 Jul 2009 13:45:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240268</guid><dc:creator>sapientcoder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/240268.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=240268</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s correct in the actual code. I hand-wrote the snippet&amp;nbsp;in the post yesterday, and I got those two lines backwards.&lt;/p&gt;
&lt;p&gt;Also, just for what it&amp;#39;s worth to anyone reading this, we&amp;#39;re getting ready to ditch the DataForm control and see how difficult it really is to just write our own data entry forms (or use 3rd-party controls) and handle validation ourselves.&lt;/p&gt;</description></item><item><title>Re: Entity validation problem</title><link>http://forums.silverlight.net/forums/thread/239971.aspx</link><pubDate>Tue, 30 Jun 2009 23:35:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239971</guid><dc:creator>Klinger</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239971.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=239971</wfw:commentRss><description>&lt;p&gt;Nothing really to do with the problem you are describing but shouldn&amp;#39;t the call to SubmitChanges be after&lt;/p&gt;
&lt;p&gt;the event subscription? &lt;/p&gt;
&lt;p&gt;_context.Submitted += (sender, args) =&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="cmt"&gt;&lt;font color="#00d502"&gt;// handle exceptions from submit operation&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;_context.SubmitChanges();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Entity validation problem</title><link>http://forums.silverlight.net/forums/thread/239967.aspx</link><pubDate>Tue, 30 Jun 2009 23:23:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239967</guid><dc:creator>sapientcoder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239967.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=239967</wfw:commentRss><description>&lt;p&gt;Inside of the Save() routine in one of my ChildWindows, I have code like this:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;if&lt;/span&gt; (dataForm.IsItemValid)
{
    _context.SubmitChanges();
    _context.Submitted += (sender, args) =&amp;gt;
        {
            &lt;span class="cmt"&gt;// handle exceptions from submit operation&lt;/span&gt;
        };
}&lt;/pre&gt;
&lt;p&gt;The entity being edited by the DataForm&amp;nbsp;has an &amp;quot;Address&amp;quot; property that points to an Address entity, which has several required fields and is an associated (child) entity.&lt;/p&gt;
&lt;p&gt;For some reason, if I fill out a couple of fields on the DataForm and then click OK (without filling out any Address fields), the &lt;strong&gt;IsItemValid&lt;/strong&gt; property returns &amp;quot;true&amp;quot; and tries to save the entity to the server, even though its address in invalid. As a result, I get an exception back from the server. In other cases, however (like if I leave the whole form blank and don&amp;#39;t try filling out anything before saving), the &lt;strong&gt;IsItemValid&lt;/strong&gt; property returns the correct value and doesn&amp;#39;t try to save the entity (which makes sense since the Address is invalid).&lt;/p&gt;
&lt;p&gt;Has anyone else seen this happen?&lt;/p&gt;</description></item></channel></rss>