Saturday, May 1, 2010

This is the post which belongs to the same series of the samples and examples of the Client Object Model in SharePoint 2010. So, this post I give you a start up examples for Silverlight Client OM.

Download the examples from here.
Download Silverlight Client OM examples and samples.

Let me know the feedback and if you need anything else.

2 comments:

  1. Great post. Very well laid out and easy to follow code. Thank you very much.
    I was wondering if you have had any success updating a custom list in sharepoint from silverlight app. I have managed to do this using the code from both you and microsoft but I can only update system fields eg. title. if I try to update any of my custom fields then my code just falls over.


    ListItem oListItem = oList.AddItem(new ListItemCreationInformation());

    oListItem["Title"] = "My new item";
    oListItem.Update();

    Works....but

    ListItem oListItem = oList.AddItem(new ListItemCreationInformation());

    oListItem["Title"] = "My new item";
    oListItem["My Custom Field"] = "Test1";
    oListItem.Update();

    Fails :(

    My Custom Field is just a standard text field....

    Any thoughts would be appreciated.

    ReplyDelete
  2. Nevermind, I figured it out .... it seems that the sharepoint client object model updates using the field displayname where as the silverlight OM uses the actual field name.... damn it, that was a whole day wasted! :)

    Thanks,
    Anthony.

    ReplyDelete