The Elephant and the Silverlight

Thoughts and analysis of Silverlight for business applications

Page List

    RIA Services Enterprise Business Application: The Movie

    A step by step guide was requested for how I created the Enterprise Business Application from my previous blog entry. The video is rushed as I was fitting it into lunch, I apologize in advance if it is too difficult to follow.

    Part One: http://www.screencast.com/t/NGNiZjg3ZjY

    Part Two: http://www.screencast.com/t/NGJkYTEw

    Part Three: http://www.screencast.com/t/MWQ2MjdiYTct

    Commentary: I made a mistake in Part One when editing the project file. In the second section that I paste in, where it says:

    Include="..\EnterpriseTest.Web\resource\

    the EnterpriseTest.Web needs to be changed to EnterpriseTest.AppServices.Web for both resource files.

    In Part Three I was running out of time (I only get 5 minutes per video from Jing) so it gets disjointed at the end. Basically, just keep compiling, going thorugh the errors, and resolving the references. At the end you should have working application.

    Timeline

    I did not record any audio for the videos. If you can't figure out what I am doing let me know which the file and time code is and I will place a comment here explaining what is going on.


    Categories: RIA Services
    Permalink | Comments (18) | Post RSSRSS comment feed

    Comments

    AmarilloMike United States

    Sunday, December 20, 2009 10:09 AM

    AmarilloMike

    I really like this blog! Excellent! I'm not hearing any audio with the three screen casts...

    AmarilloMike United States

    Sunday, December 20, 2009 10:10 AM

    AmarilloMike

    Never mind.  My mistake. Audio was not included.

    topsy.com

    Thursday, December 24, 2009 12:45 PM

    pingback

    Pingback from topsy.com

    Twitter Trackbacks for
            
            The Elephant and the Silverlight | RIA Services Enterprise Business Application: The Movie
            [riaservicesblog.com]
            on Topsy.com

    laurel People's Republic of China

    Sunday, December 27, 2009 12:51 PM

    laurel

    Thanks Elephant.

    I finish all the steps without any error. But stuck in the silverlight lodding page Frown

    Why not write all the steps out. I think the video without audio was more complicated than words.

    ColinBlair United States

    Monday, December 28, 2009 10:17 AM

    ColinBlair

    You can also just download the finished project from my previous blog entry, it should be working. I recorded the video mainly to show how to get the linked resource files working correctly to answer a question in the previous blog entry. I did it over 15 minutes while I was on my lunch break and decided to just do the whole thing.

    (BTW: The elephant in my blog name referes to the Indian poem about the three blind men and the elephant, it is not my nickname.)

    Bhaskarkiran India

    Thursday, December 31, 2009 2:05 AM

    Bhaskarkiran

    Hi Colin,
    Thanks for your very nice videos,  I was able to build up my application with your videos.  I tried it with my own database every thing is perfict.
    I have a small concern with CRUD Operations.

    I have taken a DomainServices Class for my Customers Table and linked the results into grid using Domain Data source in SL.

    1) Getting Data is working Perfectly. but i am unable to perform insert, Update, Delete on the table. for these Operations i am using DataForm control.
    2) I want to restructure my results display in the Grid so i was trying to add the Alias to the Column Names in the IQueryable method but i am getting Error.

    here is my code for IQueryable Method:


    public IQueryable<TM_Customer_Master> GetCustomers()
            {
                IQueryable<TM_Customer_Master> objCust=null;
              
                    objCust = (IQueryable<TM_Customer_Master >)from cust in this.ObjectContext.TM_Customer_Master
                              where cust.TM_CompanyName.Contains(strCompName) && cust.TM_ContactPerson.Contains(strContactName)
                              orderby cust.TM_CompanyName
                              select new
                              {
                                 Company= cust.TM_CompanyName,
                                 ContactPerson= cust.TM_ContactPerson,
                                 ContactNo= cust.TM_ContactNumber,
                                 Address=cust.TM_Address,
                                 EmailID= cust.TM_EmailID,
                                 WebSite=cust.TM_Website
                              };
                

                return objCust;
            }

    Can you please suggest me the solution.

    irfan Indonesia

    Thursday, December 31, 2009 4:30 PM

    irfan

    Excellent! where can i download the video??

    Chris United Kingdom

    Monday, February 08, 2010 11:00 PM

    Chris

    Hello Colin,

    I am very impressed with the quality of the videos. Only if there was audio accompanying those! Still, as I said they are high quality -- not just the graphics but the information too is great. I am trying to learn how I can implement the info in my work. Will return. Keep doing the good work. Smile

    Chris

    shaggy United Kingdom

    Monday, March 01, 2010 9:28 AM

    shaggy

    Hi Colin.  

    I tried to follow your project, and use the same methodology in my app.  I didnt see these vids at first, and so when I attempted looking at just your code, the building process seemed relatively straight forward.  I got the app to build but when attempting to run, I got an error saying webcontext was not loaded.

    Looking at the vids, there is a bit where you open the project files to edit.  I am on VS2010 beta, and there is no option to edit the project file.  What should I do?

    Thanks

    Colin Blair United States

    Monday, March 01, 2010 10:54 AM

    Colin Blair

    @Shaggy
    First off, first person to ask about the Edit Project File. I am actually using the VS Power Commands and I am not sure if those will even exist for VS2010. In the meantime, you can just go to the project file thorugh the file system and open it with Notepad.

    For the error you are getting, sounds like you didn't put the code in your App.Xaml.(vb/cs) file to startup the WebContext.

    Bhaskar kiran India

    Monday, March 01, 2010 2:05 PM

    Bhaskar kiran

    @shaggy
    we have power commands for 2010 with that you will get edit project context menu in solution explorer
    with the help of colins vids I have created a walkthrough which explains the entire process of creating N-tier app in sl4 and much more I will publish the link tomoro here if Colin permits Smile
    @Colin can I publish the link for the walk through in your blog

    shaggy United Kingdom

    Tuesday, March 02, 2010 4:44 AM

    shaggy

    Thanks Colin and Bhaskar.  Colin, I did what you said, and I think it is working.  It seems that my VS2010 templates are corupted as usually I would automatically get all the code ofr the login scirpts on the project, but now they are all missing.  Using your project as a reference, I am manually creating all the UI etc for the login.  

    Updating the Web part of my main project to reference the authentication project and updating the webconfig seems to have stopped the errors appearing.  The UI logic is still a bit shakey as the links don't appear for the login etc.  Am looking into it.

    What I want to know is now that I have a separate project which is concerned only with authentication, once I have authorised a user and the details are in the client as a webcontext, can I get access to the webcontext from a different project on the server.  My scenario is I have a data project whose sole purpose is to get data from a database.  Originally it was part of the main web project, where authentication was also located so had access to the webcontext, now each project has been separated.  I don't want to send the entire recordset down to the client and filter for the user in the model, so I require access to the webcontext when data is being retreived and so data is pre-filtered before the model/view model gets it.  Is this wise, and how can this be done?

    Thanks

    Colin Blair United States

    Tuesday, March 02, 2010 2:38 PM

    Colin Blair

    First off, go ahead and post any URLs that you want as long as they are programming related.
    The WebContext uses WebContextBase so as long as your projects reference the RIA libraries you should be able to access the WebContext from WebContextBase.Current. If you need any deeper access then that then you will need to reference the AppServices library from whatever project you are using. Personally, I consider AppServices to be just that, services needed from the entire application, so I reference it from any projects that need it without worrying about it too much.

    Bhaskarkiran India

    Wednesday, March 03, 2010 12:43 AM

    Bhaskarkiran

    Thanks Colin,

    Here is the link for my Blog for walk-through of Creating Rich Business Applications.

    wunnavabk.blogspot.com

    shaggy United Kingdom

    Friday, May 07, 2010 5:32 AM

    shaggy

    Hi Colin,

    following your setup, can I have a separate data project alongside the appservices or does it have to be situated inside appservices to work?  The reason I ask is that I followed your guide and created an n-tier app.  I have used the appservices project to handle authentication only, and have a separate project which contains a domain service which gives access to the rest of the data.  Both these services are accessing the same database, but I dont think this is of any concern.

    Anyhow the problems arises with validation.  I am using MVVM setup with MEF to bind it all together.  The data is pulled through fine (well sort off - I am still getting problems when I leave the app for some time and then click a record - it seems to forget everything and gives an error that it cannot connect to the data service), but when it comes to adding record, I have linked in the validation, but it is never pulled through - instead I get errors on the viewmodel.  The webcontext is set to the auth service within the view, but I am using the data service as the context on the V/VM.  Could this be causing problems with the validation not being pulled through??

    I am pulling my hair out trying to get my app to work and am not sure how to get the view to pick up the validation cues..

    Any ideas?  Thanks.

    173.akemet.com

    Thursday, May 20, 2010 12:35 PM

    pingback

    Pingback from 173.akemet.com

    K3500 Manual Auto, K3500 Half Axle Housing

    Compromise Agreements United States

    Friday, July 30, 2010 6:02 AM

    Compromise Agreements

    it is best on you to provide us these links.

    Part One: http://www.screencast.com/t/NGNiZjg3ZjY

    Part Two: http://www.screencast.com/t/NGJkYTEw

    Part Three: http://www.screencast.com/t/MWQ2MjdiYTct

    Carpet Cleaning Raleigh United States

    Friday, July 30, 2010 6:12 AM

    Carpet Cleaning Raleigh

    this site is rich with all information in the form of blogs.

    Add comment


    (Will show your Gravatar icon)

      Country flag

    Click to change captcha
    biuquote
    • Comment
    • Preview
    Loading