SilverlightShow: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint 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: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hello Walter,</p> <p>Your code is very good. i tried to implement with Silverlight 5, but i am not getting any output( lists and libraries).</p> <p>Do i need to update or add more code to get the output displayed.</p> <p>Please help me, it will solve the issue i am facing to finish a project.</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment9974 vnrkiruba http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 18 Oct 2013 22:33:43 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Does this work as a sandbox solution? I cannot deploy farm solutions..</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment9153 sappai http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Tue, 02 Apr 2013 19:00:39 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint Is there anyway, we can modify this project to allow multiple file uploads please?. Any help? http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7639 pghatak http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Thu, 08 Mar 2012 12:12:37 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint Yes, while this may work, in my situation the user permission is not the focus. Lets say from my previous post, the user already has permission to all 10 libraries in the site. When the user goes to drag-and-drop a file to a library using the application they are presented with all 10 libraries. I want to remove the guess work to which library they should place the file. If I create a document library called "inquiry" and this is the ONLY library they should place these items into then I only want to show this one library in the Silverlight app. To put my question into better context, my application lives on a page within a site. When using the Silverlight application they only need to put their files into this "inquiry" library. However, when using the SharePoint site this application resides within, the user should be able to access any of the 10 libraries. So I am therefore directing the user to place files into a pre-designated library when using my Silverlight application. http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7451 adove http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 27 Jan 2012 23:21:59 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hi adove,</p> <p>I think it's just a matter of user permission  at library level. </p> <p>Check this:</p> <p><a href="http://technet.microsoft.com/en-us/library/cc721640.aspx">http://technet.microsoft.com/en-us/library/cc721640.aspx</a></p> <p>and this for a more advanced control:</p> <p><a href="http://www.endusersharepoint.com/EUSP2010/2010/04/09/configure-item-level-permissions-for-document-libraries-%E2%80%93-part-2-%E2%80%93-sharepoint-2010-edition/">http://www.endusersharepoint.com/EUSP2010/2010/04/09/configure-item-level-permissions-for-document-libraries-%E2%80%93-part-2-%E2%80%93-sharepoint-2010-edition/</a></p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7450 walterf http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 27 Jan 2012 23:11:06 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Is there a way to use to limit the available libraries shown in this example to "abc" and "xyz" document libraries? For instance, we want to limit user error and this example gives the ability for users to place files (by dragging and dropping them) into ANY library in your site. If we want to limit the libraries shows to ONLY 2 libraries with names of "abc" and "xyz", can we do that?</p> <p>The particular use of our application is specific to users who belong to a sub-site of SharePoint. While the site these users belong to may contain 10 libraries we only want to show 2 libraries named "abc" and "xyz". This way it limits the user to place their files into the libraries we want them to place them into.</p> <p>How would this be accomplished? Any ideas? Thanks much.</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7449 adove http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 27 Jan 2012 19:48:33 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hello Walter,</p> <p>I compiled this application with Silverlight 5 and it all compiles ok.<br /> The Visual Web Part loads on the page ok but nothing shows up (i.e. just blank web part).</p> <p>OnPreRender gets called in SP_SL_NavigatorVWP and adds the control however, App.Current.Host.InitParams is empty (count=0) so it fails to get host_url.</p> <p>Can you try with Silverlight 5 please.</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7374 genifycom http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 06 Jan 2012 22:39:10 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hi adove,</p> <p>I think the easier way is to add an "added item" event receiver to your web part containing the Silverlight upload app. When the event receiver is triggered you can redirect the user to the page containing your Silverlight app which modifies the filed values passing the id of the item added.</p> <p>Some links for event receivers:</p> <p><a href="http://msdn.microsoft.com/en-us/library/gg981880.aspx">http://msdn.microsoft.com/en-us/library/gg981880.aspx</a></p> <p><a href="http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/">http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/</a></p> <p>Another way is to fire another client query in the OnLoadingSucceeded of the SL upload app. This query asks for the id of the  last item inserted in the list.. then you can fill a childwindow form with the metadata and fire another client query to update the item knowing its ID..</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7307 walterf http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 16 Dec 2011 00:37:41 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Great post! I am trying to modify your existing code to allow for the entry of MetaData about the newly added document to the library. The purpose is to create a catalog of data about each file so searching and reporting may be done on the files. Let me explain in a hypothetical example: </p> <p>In my example I manage 3 franchise locations of widget stores.  Each store has managers and employees. Every month I receive documents from the widget stores. My goal is to catalog each of the documents into a document library, however, after a file is uploaded (using your awesome app!), I unfortunately have no metadata about the file. I have created columns in a library named "company", "location", "contact" and "summary". Once the file has successfully uploaded I want a popup or ChildWindow or something to appear as a form with textboxes and a submit button. I will enter to specific data about the individual file which is stored alongside the file in the library. The end result gives me visibility to see which employee the file came from, the location of their franchise and any extra summary details about the file.</p> <p>I am using a separate Silverlight web part to modify listitem field values, however, this solution hard codes the list name in the code. If necessary, including this hard coded library name would be an acceptable workaround because not all libraries will have the custom columns I have described in my example. Is this extra modal popup form possible and if so, how?</p> <p>Much thanks.</p> <p>A.Dove</p> <p></p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7306 adove http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Thu, 15 Dec 2011 22:45:44 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Great post! I am trying to modify your existing code to allow for the entry of MetaData about the newly added document to the library. The purpose is to create a catalog of data about each file so searching and reporting may be done on the files. Let me explain in a hypothetical example: </p> <p>In my example I manage 3 franchise locations of widget stores.  Each store has managers and employees. Every month I receive documents from the widget stores. My goal is to catalog each of the documents into a document library, however, after a file is uploaded (using your awesome app!), I unfortunately have no metadata about the file. I have created columns in a library named "company", "location", "contact" and "summary". Once the file has successfully uploaded I want a popup or ChildWindow or something to appear as a form with textboxes and a submit button. I will enter to specific data about the individual file which is stored alongside the file in the library. The end result gives me visibility to see which employee the file came from, the location of their franchise and any extra summary details about the file.</p> <p>I am using a separate Silverlight web part to modify listitem field values, however, this solution hard codes the list name in the code. If necessary, including this hard coded library name would be an acceptable workaround because not all libraries will have the custom columns I have described in my example. Is this extra modal popup form possible and if so, how?</p> <p>Much thanks.</p> <p>A.Dove</p> <p></p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment7305 adove http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Thu, 15 Dec 2011 22:32:07 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint Have you run into the 3 Meg file size limit in the Silverlight Client OM? This code when implemented on a standalone SharePoint development box will not upload any file greater than 3 Meg. Have you seen this? http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment6445 EricKleeman http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Fri, 19 Aug 2011 14:20:10 GMT Re: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hi, great articles!</p> <p>Question, I'm developing a web part that needs to send the logged user credentials in Sharepoint to another service (Windows Authentication). Right now, I'm using the default credentials and works, but , when I sign out in share point and choose other user, the default credentials don't change in my silverlight.</p> <p>I tried loading the CurrentUser (using client object model), but I get only the username, not the credentials.</p> <p>The external service is an odata, and I need to set the Context.Credentials to work with.</p> <p>Any ideas?</p> <p>Thanks,</p> <p><br /> </p> <p><br /> </p> <p><br /> </p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment6320 MichaelSanchez http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Mon, 04 Jul 2011 23:19:11 GMT RE: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hello sir,</p> <p>It's a very userful tutorial to implement silverlight & sharepoint integrated applications.</p> <p>I've been stuck with one same kind of problem, here it is,</p> <p>I've developed silverlight application with one telerik scheduler control, & with the use of Sharepoint Client Object Model, i have made my scheduler binding all appointments from sharepoint 2010 calendar list view. Now where i am facing problem when sharepoint calendar selected columns/fields varies, my scheduler Edit Appointment Dialog window not able to show those update fields in that, because i've made one custom class & i can bind only those fields for which i've defined properties in that class.</p> <p>My question is, how can i get list of Fields/columns for particular list in silverlight application with the use of Client Object Model, & how scheduler will generate all fields with the controls which are set in sharepoint 2010 calendar list view.</p> <p>All in all i want to fully synchronize my telerik scheduler with sharepoint 2010 calendar list view. All CRUD operations should be done thru scheduler & affects to sharepoint 2010 calendar list view side by side.</p> <p> Can you pls guide me or show me the way how will i achieve this kind of functionality.</p> <p> thank you.</p> <p> regards,</p> <p>palak bhansali</p> <p>palonluck@gmail.com</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment6160 palak bhansali http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Wed, 18 May 2011 20:54:31 GMT RE: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Hi Julian,</p> <p>I'm happy to know that my article was useful :-)</p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment5740 Walter http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Sun, 20 Mar 2011 20:30:53 GMT RE: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint <p>Excellent work - thanks for sharing this with us.  Deployed perfectly and solved a big headache for me on a LOB custom webpart :)</p> <p>The only code I added was:</p> <span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"><span style="font-family: consolas; color: #0000ff; font-size: 13px;"> <p>where</p> </span> <p> </p> </span> <p> </p> </span> <p><span style="font-family: consolas; font-size: 13px;">ls.Title.ToString() == </span><span style="font-family: consolas; color: #a31515; font-size: 13px;">"your list title here"</span></p> <p><span style="font-family: consolas; color: #0000ff; font-size: 13px;">select</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #0000ff; font-size: 13px;">new</span><span style="font-family: consolas; font-size: 13px;"> </span><span style="font-family: consolas; color: #2b91af; font-size: 13px;">InfoList</span><span style="font-family: consolas; font-size: 13px;">() { Title = ls.Title, Description = ls.Description }; </span></p> <p><span style="font-family: consolas; font-size: 13px;">to return only the lists that I wanted.  Without 'where', even Masterpages list was showing up and would let me drop a file in it. <p> </p> </span></p> <p> </p> http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment5737 Julian http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Sun, 20 Mar 2011 01:09:55 GMT RE: Silverlight and Sharepoint 2010 a step forward: how to build a small Silverlight 4 utility to upload files in a List or Library of Sharepoint Im getting the following error when i try to upload FileSecurityState_OperationNotPermitted http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx#comment5692 Bharat http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx Mon, 14 Mar 2011 10:56:27 GMT