SilverlightShow: Building a Framework for Silverlight Line-Of-Business Applications Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) RE: Building a Framework for Silverlight Line-Of-Business Applications <p>I bought that book and I have it. Unfortunately it only focuses on discovering the variety of the SL4 features, but does't teach me how to compose the puzzle resulting in an end-to-end Silverlight 4, Entity Framework - WCF RIA, MVVM based LoB application.<br> </br> <br> </br>Here is a question I posted, that clarifies my difficulties: <a href="http://forums.silverlight.net/forums/p/227325/550572.aspx">http://forums.silverlight.net/forums/p/227325/550572.aspx</a>.<br> </br> <br> </br>I would be glad if you could refer me to a post that covers the above criteria.</p> <p>I am looking for a working example/tutorial/book/project template for a:<br> </br> <br> </br><strong>End to end SL4 LoB Application using Entity-Framework, WCF RIA Services and MVVM.</strong></p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment6032 weitzhandler http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 01 May 2011 09:39:25 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications I now have a book <a href="http://www.amazon.com/gp/product/1430272074?ie=UTF8&tag=httpchrisawor-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=1430272074">Pro Business Applications with Silverlight 4</a> that (as its name suggests) details creating business applications in Silverlight 4. http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment6014 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 29 Apr 2011 03:18:05 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>The big question is how would you build such an application with SL4???</p> <p>Any link to an updated version that describes the above title?</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment6013 weitzhandler http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 29 Apr 2011 03:09:14 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications The big question is how would you build such an application with SL4??? http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment6012 weitzhandler http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 29 Apr 2011 03:08:26 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Thanks alot Chris. You are right, i was trying to to change app into SL 4. That;s why it is giving problem.</p> <p>Will look into RIA services. Once again thanks alot.</p> <p>Raghav.</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment4565 Raghav http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 26 Sep 2010 12:24:55 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Raghav</p> <p>This article was written for Silverlight 2, and you may be experiencing the issue in converting it to Silverlight 3 or 4 discussed earlier in the comments.  Otherwise I'm not really sure, but Silverlight has changed a lot in the 2 years since I wrote this article, and you may now wish to take a look at RIA Services instead of plain WCF. Silverlight 3 also introduced the Navigation Framework, making it easier to structure your UI without writing a framework as I did here (when the Navigation Framework wasn't available).  I also have a book titled Pro Business Applications With Silverlight 4 now that you may find useful in your journey.</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment4564 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 26 Sep 2010 09:24:47 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Chris, </p> <p>Nice Article. It really helped alot to understand SL as LOB app especially for a begineer like me.</p> <p>I downloaded code and trying to run but it is giving error :</p> <p>"Could not find default endpoint element that references contract 'IMySOAPWebService' in the service model client configuration section. This might be because no configuration file was found for your application or because no end point element matching this contract could be found in the client element"</p> <p>Searching for this error tells me to use the full namespace in the contract. </p> <p>AppConfig :</p> <p><client><br />    <endpoint address="http://localhost:9240/AWDataService.svc" binding="basicHttpBinding"<br />     bindingConfiguration="BasicHttpBinding_IAWDataService" contract="ServiceReference1.IAWDataService"<br />     name="BasicHttpBinding_IAWDataService" /><br />   </client></p> <p>Any suggestions will be really helpfull.</p> <p> Thanks, </p> <p>Raghav</p> <p></p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment4550 Raghav http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 24 Sep 2010 18:33:14 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Great Great Article, thanks a ton for the insight into using SL to create LOB apps. http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment4400 K.R. Schwartz http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 06 Sep 2010 01:02:16 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi Ziad/George <div><br /> </div> <div>Information on configuring the users table and users is in the Using the Sample Application section of the article.</div> <div><br /> </div> <div>Chris</div> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment3270 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 18 Mar 2010 15:05:04 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <span id="ctl00_cphMiddle_ContentPlaceHolderContent_itemComments_dlstComments_ctl94_lblCommentAuthor">@George Costa - we are going to fix the login problem ASAP, sorry for the inconvenience</span> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment3265 iiordanov http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 18 Mar 2010 12:05:54 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications I have installed the application and the database, but when I try to logon I get message 'Invalid user/password' . Ima using demo/demo. How do I add this user to the users table in order to run the sample application http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment3263 George Costa http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 18 Mar 2010 11:34:41 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi,</p> <p>The application doesnt give any error as i could fix all of them, except there is no tuple in the database table for user. So, the username demo with password demo doesnt exist. So I cant log into the system or create a new user account.</p> <p>Can you please suggest me.</p> <p>Thanks </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment3228 Ziad http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 15 Mar 2010 18:55:07 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Has anywone checked out what WayPoint is doing at <a shape="rect" href="http://navigator.mywaypoint.com/" shape="rect">http://navigator.mywaypoint.com/</a> ?  Looks like a pretty cool way to streamline Silverlight LOB development efforts. http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment2610 initdotd http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 30 Oct 2009 18:38:18 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi,Chris, Did I miss it or not,but I can't find your post on how to integrate Prism with this work. Could you give us some directions? Thanks! Bill http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment2410 Bill http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 27 Sep 2009 20:45:41 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi Adam <p>This is a problem caused during the conversion of the project to Silverlight 3.  Instructions to fix this problem can be found in the comments for article 4:</p> <a title="Linkification: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-4.aspx" href="http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-4.aspx" class="linkification-ext">http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-4.aspx</a><br /> <p>Hope this helps...</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment2224 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 11 Aug 2009 19:42:40 GMT Error building the Silverlight Line-Of-Business Applications <p>I am getting the errors listyed bellow when I try to compile the source code.</p> <p> </p> <span style="font-size: 10px;"> <p>C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;SILVERLIGHT /reference:C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWBusinessObjectsSL\Bin\Debug\AWBusinessObjectsSL.dll /reference:Bin\Debug\Blacklight.Silverlight.Controls.dll /reference:Bin\Debug\Cooper.Silverlight.Controls.dll /reference:Bin\Debug\DevExpress.AgDataGrid.v8.2.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\mscorlib.dll" /reference:Bin\Debug\SilverlightMessageInspector.dll /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Core.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\system.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Net.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Runtime.Serialization.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.ServiceModel.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Windows.Browser.dll" /reference:"c:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Windows.dll" /reference:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Xml.dll" /debug+ /debug:full /optimize- /out:obj\Debug\AWSilverlightLOB.dll /resource:obj\Debug\AWSilverlightLOB.g.resources /target:library App.xaml.cs ConfigurationSettings.cs Content\Dashboard\DashboardPage.xaml.cs Content\IContentPage.cs Content\Inventory\InventoryListPage.xaml.cs Content\Inventory\InventorySidebar.xaml.cs Content\Inventory\ProductDetailsPage.xaml.cs Content\Inventory\ProductReportsViewer.xaml.cs Content\Miscellaneous\LoginPage.xaml.cs Controls\Data\FieldValidator.xaml.cs Controls\Layout\Footer.xaml.cs Controls\Layout\Header.xaml.cs Controls\Layout\HtmlViewer.cs Controls\Layout\SummaryListToolbar.xaml.cs Controls\Layout\SidebarBase.xaml.cs Controls\Toolbar\Toolbar.xaml.cs Controls\Toolbar\ToolbarButton.xaml.cs Controls\Layout\WaitIndicator.xaml.cs Reporting\ReportRequest.cs Utilities\Cookies.cs Data\AWServiceFactory.cs Data\AWServiceMessageInspector.cs DictionaryCache.cs EventArguments\CloseArgs.cs EventArguments\ListPageChangedArgs.cs "Service References\AWWebServices\Reference.cs" ValueConverters\CurrencyConverter.cs EventArguments\ListSearchArgs.cs EventArguments\NavigateRequestArgs.cs EventArguments\PageStatusChangeArgs.cs Globals.cs Page.xaml.cs Properties\AssemblyInfo.cs ValueConverters\DictionaryConverter.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\App.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Dashboard\DashboardPage.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Inventory\InventoryListPage.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Inventory\InventorySidebar.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Inventory\ProductDetailsPage.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Inventory\ProductReportsViewer.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Content\Miscellaneous\LoginPage.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Data\FieldValidator.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Layout\Footer.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Layout\Header.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Layout\SummaryListToolbar.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Layout\SidebarBase.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Toolbar\Toolbar.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Toolbar\ToolbarButton.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Controls\Layout\WaitIndicator.g.cs C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\obj\Debug\Page.g.cs</p> <p>C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\Content\Inventory\ProductDetailsPage.xaml.cs(26,17): error CS0104: 'Product' is an ambiguous reference between 'AWBusinessObjects.Inventory.Product' and 'AWSilverlightLOB.AWWebServices.Product'</p> <p>c:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWBusinessObjectsSL\Bin\Debug\AWBusinessObjectsSL.dll: (Related file)</p> <p>C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\Service References\AWWebServices\Reference.cs(201,26): (Related location)</p> <p>C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\Content\Inventory\ProductDetailsPage.xaml.cs(202,47): error CS0104: 'Product' is an ambiguous reference between 'AWBusinessObjects.Inventory.Product' and 'AWSilverlightLOB.AWWebServices.Product'</p> <p>c:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWBusinessObjectsSL\Bin\Debug\AWBusinessObjectsSL.dll: (Related file)</p> <p>C:\Dev\Samples\AdventureWorks\AdventureWorksLOB_Part6\AWSilverlightLOB\Service References\AWWebServices\Reference.cs(201,26): (Related location)</p> <p> </p> <p>Adanm</p> </span> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment2223 Adam http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 11 Aug 2009 14:52:07 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Chris,<div>i have just digging into this area myself when i stumbled upon your efforts.</div><div><br /><div>well done and kudos for taking the time to explore the ins and outs.  </div><div><br /></div><div>you have removed many of the stubling blocks or at least highlighted them for me and others no doubt and i thank you.<div><br /></div><div>cheers, JB</div><div><br /></div><div>Perth, WA</div></div></div> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment2216 JB http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 09 Aug 2009 07:54:56 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Can you write a book that can replicate this article ? This is one of my online articles so far on silverlight.Please Do.If eventually you decided to make book out of this article please contact me with this <a href="mailto:mtonytsund@yahoo.com">tonytsund@yahoo.com</a> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1402 Sunday http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 02 Apr 2009 02:15:11 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi usacoder<br /> <br /> If you check out one of the later articles in this series (currently 6 parts - links at top of article) I demonstrate most of this functionality (except for Next/Previous record which is easy to implement).  Hope this helps.<br /> <br /> Chris<br /> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1223 Chris Anderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 19 Mar 2009 09:54:39 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Just after I submitted the above comment, I learned that Silverlight 3 and the new DataForm control are available to developers.  Here is the link to a video: <a href="http://silverlight.net/learn/learnvideo.aspx?video=187317">http://silverlight.net/learn/learnvideo.aspx?video=187317</a><br /> <br /> I still need to get the data binding information but this is a good start.<br /> <br /> usacoder http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1214 usacoder http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 18 Mar 2009 19:23:20 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Chris,<br /> <br /> I am building a Silverlight application that talks to a MS SQL Server database using ADO Data Services and the Entity Framework possibly using LINQ.  Many of my forms are data entry types that show one record at a time rather than a grid.  I wish to implement the traditional form based functionality including record navigation (first, previous, next, last) and CRUD functions (create, read, update, delete). I can't seem to find a working example anywhere.  Can you help me out?  If possible, you can use the base archtecture presented in this article.<br /> <br /> Thank you,<br /> <br /> usacoder http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1212 usacoder http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 18 Mar 2009 18:13:35 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Thank you. Fanatasic article to get started with Silverlight!<br /> <br /> Recommended to everyone interested in Silverlight!!! http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1171 Jakes http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sun, 15 Mar 2009 02:33:38 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi Jakes, sorry about that. Please, try again - it works now. http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1167 emil http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sat, 14 Mar 2009 10:55:02 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Demo is broken. Please can you get is up and running again! http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1166 Jakes http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sat, 14 Mar 2009 09:45:14 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications Hi Ken, You can download the latest source code from the link to Part 6 located in the beginning of this article. Enjoy :) http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1139 Ilia Iordanov http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 10 Mar 2009 13:11:21 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>First, thanks very much for this sample LOB application.</p> <p>The Live Demo has features that are not included in the source code (as I think you may have mentioned).  Is there any way to get access to some (or all) of the new code in the Live Demo.  I am particularly interested to get the ProductDetailsPage.<br />  </p> <p>Thanks, Ken</p> <p> </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1135 Ken http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 10 Mar 2009 11:56:22 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>First, thanks very much for this sample LOB application.</p> <p>The Live Demo has features that are not included in the source code (as I think you may have mentioned).  Is there any way to get access to some (or all) of the new code in the Live Demo.  I am particularly interested to get the ProductDetailsPage.<br />  </p> <p>Thanks, Ken</p> <p> </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1134 Ken http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 10 Mar 2009 10:39:11 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Eric</p> <p>I have been looking at Prism and waiting for the Silverlight support.  Now that it is there I will probably look into it a bit deeper and discuss it in relationship to this framework in the near future (though I can't say when).</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1119 Chris Anderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 03 Mar 2009 09:31:11 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Chris,</p> <p>Have you had a look at <a href="http://compositewpf.codeplex.com/">http://compositewpf.codeplex.com/</a> ?</p> <p>This is now buildable in Silverlight and seems to provide a good framework for much more complicated SL LOB apps.</p> <p> </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1111 Eric http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Sat, 28 Feb 2009 11:09:17 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>this is very good, Thank you</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1078 pongsathin.keng http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 20 Feb 2009 02:20:44 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>so nice !!!!</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment1031 lanthao http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 09 Feb 2009 05:13:28 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>That last comment got mucked up.  Trying again:</p> <p>var xamlObject = document.getElementById('Xaml1');<br />             <br /> if (xamlObject != null)<br />     xamlObject.focus();</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment949 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 22 Jan 2009 23:41:14 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Andrus</p> <p>Try this instead:</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>var</p> </font></font></p> <p><font size="2"> xamlObject = document.getElementById(</font><font color="#a31515" size="2"><font color="#a31515" size="2">'Xaml1'</font></font><font size="2">);</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">if</font></font><font size="2"> (xamlObject != </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">null</font></font><font size="2">)</font> <p>Chris</p> </p> <p> </p> <p> </p> <p>    xamlObject.focus();</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment948 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 22 Jan 2009 23:39:22 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p><span style="color: rgb(0,0,255)">If Silverlight is not installed, javascript error occurs because</span></p> <p><span style="color: rgb(0,0,255)"><font color="#000000">document.getElementById(</font><span style="color: rgb(0,96,128)">'Xaml1'</span><font color="#000000">).</font></span></p> <p><span style="color: rgb(0,0,255)">does not return object.</span></p> <p><span style="color: rgb(0,0,255)">How to fix this so that user does not got error ?</span></p> <p> </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment945 Andrus http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 22 Jan 2009 11:27:18 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Andrus, I'm not aware of why you are experiencing this problem as I don't (and have had no other reports of the same problem) - it could be something perhaps to do with your modifications in your code.  There are many different LOB UI designs including having separate windows, but the current design is specifically taylored to people used to developing ASP.NET applications in a master page / content page manner.  Unfortunately due to the extensive time it takes to prepare each article I can't cover every common UI design, and with the newness of the technology it is very much a case of charting undocumented territory and exploring for yourself.  I do plan to cover these other scenarios at some stage, but my primary goal is to just help people get started so they can work from this base and devise their own solutions to their visions, as just knowing where to start can be the hardest part.  Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment937 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 19 Jan 2009 23:38:55 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>chris, I disabled Login button immediately and changed calls to async methods. After clicking to Login button or pressing enter Login button is *not* disabled immediately. There is significant delay before it is disabled and progress bar. It seems that UI update is delayed for unknown reason. This is very confusing to users, causes them to click Login multiple times.</p> <p>Also I think that LOB application should contain multiple windows. Content part should contain Tabcontrol.</p> <p>When new window is opened, new tab with this window should be added to Tabcontrol mimicing Tabbed window interface. How to implement this ?</p> <p>Andrus.</p> <p>changed code is:</p> <p>void StartLogin()<br />         {<br />             Dispatcher.BeginInvoke(() =><br />             {</p> <p>                LoginButton.IsEnabled = false;<br />                 if (PageStatusChange != null)<br />                     PageStatusChange(this, new PageStatusChangeArgs(PageStatusChangeArgs.eStatuses.RetrievingData));<br />             });</p> <p>            Dispatcher.BeginInvoke(() =><br />             {<br /> ...<br />                 client.LoginAsync(UserNameTextbox.Text, PasswordTextbox.Password);<br />             });<br />         }<br />  </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment933 Andrus http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 19 Jan 2009 16:19:00 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Outstanding !!!</p> <p>After wandering thru the Silverlight wilderness, I discovered a real software engineer</p> <p>Thanks for sharing...</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment920 Scott Thomley http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Fri, 16 Jan 2009 19:23:15 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Andrus</p> <p>I am not experiencing this problem.  If it is a problem, just disable the Login button after it's pressed by setting its IsEnabled property to False.</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment906 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 14 Jan 2009 00:53:19 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>There is significant delay if user presses enter in login form before progress indicator appears.</p> <p>This causes user to press login again and again etc.</p> <p>How to provide immediate visual feedback or disable login button immediately after OK button in pressed in login form ?</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment903 Andrus http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 13 Jan 2009 15:46:04 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi steve buckok</p> <p>The online demo is working now, the problem was that after insertion of 5 invalid passwords the account got locked.</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment846 iiordanov http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 17 Dec 2008 08:38:11 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Is the online example no longer working, the username and password of demo no longer work.</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment841 steve buchok http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 16 Dec 2008 14:12:23 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi TR - since ADO.NET Data Services works over WCF it was really more of a decision to implement my own WCF service with custom DTO classes (which became business objects).  I was aiming to elaborate on that decision in a future article, but in summary it really came down to a number of reasons.  This way I have full control over what is transferred between the server and the client (limit which fields are transferred).  There is not always a 1:1 matching between what I need at the client and what can be delivered by ADO.NET Data Services (for example the ProductSummary class consists of data across a number of entities in my entity model which cannot be retrieved without custom coding for the ADO.NET Data Services).  This includes the paging functionality, etc.  Limiting what can be retrieved by the users role is another issue.  Ultimately I think ADO.NET Data Services is good for simple scenarios and proof of concept applications, but I'm not convinced on its usefulness in more complicated applications.  I'd welcome feedback from those who have played more extensively than I have with this technology but in general you sacrifice power with technologies such as this that promote simplicity, and writing your own wcf service to implement the required functionality really isn't that much work.  Hope this helps!</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment731 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 19 Nov 2008 23:37:28 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Johannes - thanks for your feedback - I welcome any constructive criticism like this as I seek to make this a best practises solution (where possible).  You are absolutely correct in that I should have my event argument classes inherit from System.EventArgs and will fix this for the next instalment of the code.  It was an oversight on my part when I was rushing to complete the source for the article.  Then of course I could let the event handler delegates be declared as EventHandler<TArgs> which would be a much neater solution.  Thanks again for this feedback and I welcome any more feedback that you might have.</p> <p>Chris</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment730 chrisanderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 19 Nov 2008 23:24:48 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Can you elaborate about your decision to use WCF over ADO.Net Data Services?  We are evaluating the two solutions and would like to know why others are deciding on one solution over another.</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment691 TR http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 17 Nov 2008 10:39:29 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi Chris, thanks for a very good article series I'm looking forward to the next part...</p> <p>Are there any reason that you don't let your eventargs derive from System.EventArgs and then let the EventHandler delegates be declared as EventHandler<TArgs> instead of making them explicit delegates?</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment690 Johannes Hansen http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 17 Nov 2008 06:28:26 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Waiting for the next version :)</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment593 Balázs http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 28 Oct 2008 11:27:16 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Excellent, I've been doing all the same things you have to prove if SL is the way to go!</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment567 RAS http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 20 Oct 2008 13:21:52 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Very nice article!. I look forward to seeing your future articles. </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment553 darroyave http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Thu, 16 Oct 2008 13:59:25 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Hi all - thanks for your feedback and kudos - it's very much appreciated.  So some answers to your questions:</p> <p>Martin - you're not foolish for installing RC0 at all :).  I waiting until I finished this article to install RC0 myself (as this competition was for the beta 2 version).  I installed RC0 yesterday and like you found it broke my app (plus now I can't see how the voting for this competition is going from this machine as the RC0 build doesn't run any beta 2 applications).  It's the big problem with working with betas - invariably new releases break all your previous good work :).  Going forward my development and releases will be targeting RC0 - I should have a release (with source) tomorrow to work with RC0, so not too long to wait :).  The big issue is that the Blacklight control I was using in the dashboard is greatly affected by the changes, and while I've got that control to compile it still doesn't work so I will need to look into that further.  I have noticed that the textbox focus bug mentioned in the article has not been fixed in RC0 - hopefully that might make it into the final release of Silverlight but I'm not sure based upon the expected release date nearing!</p> <p>Steve - thanks for your feedback, and good to hear you've been having some success in your development using Silverlight 2!  I'd be very interested in seeing what you have managed to achieve (maybe some screenshots?) if you're able to share :).</p> <p>Danny - Prism is definitely something I'd like to target, and was on my list for sometime in the future.  I'd say to watch out for support sometime in the next month or two :).</p> <p>To keep track of updates, please visit my blog at <a href="http://chrisa.wordpress.com">http://chrisa.wordpress.com</a>, and I will also post notifications in the comments section here.  Thanks again for all your feedback and questions - keep them coming! :)</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment483 Chris Anderson http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Wed, 01 Oct 2008 00:50:40 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Great article, thanks. Do you see this framework possibly working with prism 2 in the future?</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment480 Danny http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 30 Sep 2008 17:14:08 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Very nice article!</p> <p>I've actually written a full LOB app, which is currently being piloted by 8 users on SL2b2. I've been developing apps in ASP.Net for the last 3yrs and I'm finding SL to be an amazing platform!</p> <p>I'm making plenty use of LINQ and WCF services over SSL. I'm authenticating users via the ApplicationServices.AuthenticationService and the WCF calls via the HTTPContext and authenticated user, with aspNetCompatibilityEnabled set to true. Works like a charm :)</p> <p>Many thanks to all the guys out there for articles like this and for creating styles and controls for SL!</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment478 steve http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 30 Sep 2008 13:05:20 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Nice work. I look forward to seeing your future articles. </p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment477 FSUGuinness http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 30 Sep 2008 10:20:36 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>I have like you been looking for real world application sample - graphic is nice but my customer is not going to pay me for a spinning cube :-) So thanks for the great example.</p> <p>But I have a problem I was foolish enough to install RCO of SilverLight and I am unable to run your code. Are you planning to convert the code to RC0? I hope so.</p> <p>There first error I get is that HorizontalGridlinesBrush is no longer supported</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment476 Martin Nyborg http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Tue, 30 Sep 2008 08:12:51 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Very nice Chris!</p> <p>Thank you for sharing it.</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment465 David Roh http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 29 Sep 2008 04:23:35 GMT RE: Building a Framework for Silverlight Line-Of-Business Applications <p>Great article!</p> http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx#comment464 Valentin Stoychev http://www.silverlightshow.net/items/Building-a-Framework-for-Silverlight-Line-Of-Business-Applications.aspx Mon, 29 Sep 2008 03:31:59 GMT