Posts

Sharepoint 2010 - Delete this List link missing

If menu item "Delete this List" in list settings is missing or, in Sharepoint Designer 2010, you receive error in deleting list/library, may be problems is for AllowDeletion property of the List/Library. Once you declare an item as a record in a list, the corresponding lists SPList.AllowDeletion property is set to False. This is why you no longer see the "Delete this List" link in the list settings and is intended to protect lists with items declared as records. You can use PowerShell to delete the list (using the SharePoint 2010 Management Shell): $assignment = Start-SPAssignment $web = Get-SPWeb -Identity "http://yoursite" -AssignmentCollection $assignment $list = $web.lists["Your List Title"] $list.AllowDeletion = $true $list.Update() #after this is entered, the "Delete this List" link will reappear in the UI for the List Settings $list.Delete() #this will delete the list Stop-SPAssignment $assignment Yes, it's wor...

Google Android - Low resolution in People pics?

Image
My wife has a mobile phone with Android. I have configured the account on Gmail (and consequently, now on all Google services), putting a photo for her profile (in GMail, please note!). But the little pic that I put, despite having uploaded a high-resolution photo, on my Nexus S is just very low quality. I came across this "problem" that I discovered not only mine. No concrete solution around, then I started found mine. Photos of contacts on Android, appear in 96 x 96 pixels. Which is sufficient for most smartphones with Google's operating system. But with Ice Cream Sandwich (Android 4), the application People (former contacts), the problem is a bit more visible. or rather, you see, but just bad ... Selecting a contact, the picture (if coming from Gmail) appears with a higher resolution, then it is low. There are different solutions for photos coming for example from Facebook via third party applications, but goes for Facebook. But today I discovered an i...

Google - Foto sgranate nei Contatti di Android?

Image
Mia moglie ha da poco un telefonino con Android. Le ho configurato l'account su Gmail (e di conseguenza, adesso, su tutti i servizi di Google), mettendo una foto per il suo profilo (in GMail, nota bene!). Ma la fotina che le ho messo, pur avendo caricato una foto ad alta risoluzione, sul mio Nexus S viene proprio ben sgranata. Mi sono imbattuto in questo "problema" che ho scoperto non essere solo mio. Nessuna soluzione concreta in giro, allora mi sono ingegnato. Le foto dei contatti, su Android, vengono visualizzate in 96x96 pixel. Il che è sufficiente per la maggior parte degli Smartphone con il sistema operativo di Google. Ma con l'arrivo di Ice Cream Sandwich (Android 4), nell'applicazione People (ex Contatti), il problema è un po' più visibile.. o anzi, si vede, però proprio male.. Selezionando un contatto, la sua foto (se proveniente da Gmail) viene visualizzata con una risoluzione maggiore, quindi viene sgranata. Ci sono diverse soluzioni, ...

Sharepoint 2010 - Ajax List Web Part

Image
I need web part that read from Site Collection, each Subsite, each Document Library, each Document, and return list of latest Documents of the entire Site Collection. Not very hard to develop, but it's very very bad in performance.. Web Part page take a long time to render. So the ajax idea. But how to? I found no way to expose ajax properties in tool panel of WP developed in VStudio. If you know how to.... write me, please! I checked out many posts, forums, articles about how to integrate Ajax Toolkit in Sharepoint. Then I do my way. I referenced Ajax Toolkit dll in my project. Download the right toolkit for Sharepoint here:  http://ajaxcontroltoolkit.codeplex.com/releases/view/33804 . To use the Ajax Control Toolkit in any web part control add the following lines to register the Ajax Control Toolkit namespace: <%@ Register Assembly="AjaxControlToolkit, Version=3.0.30930.28736,  Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxCon...

Sharepoint 2010 - Set Editor (Modified By) for Document in Doc Lib

I found many problems to update the field "Modified By" in a document loaded programmatically in a Document Library. After several attempts I found my solution. Use the "vti_modifiedby" from ListItem.File.Properties. Therefore, you must run these lines of code: spListItem.File.Properties["vti_modifiedby"] = SPContext.CurrentWeb.CurrentUser.LoginName; //Properties wants string spListItem.File.Update(); It Works! It does not works for  Document Set. I have not found the correct procedure. If anyone knows, write me!

Sharepoint 2010 - Email Event Receiver Issues

Image
The Email event receiver is not so simple to create and execute... I experienced some issues for the correct configuration. EmailReceived Method: wrong reference in Handle Email Receiver method created by VS When you create the email event receiver you see the method EmailReceived. In Visual Studio, see properties of event receiver and you see "handle email receiver" = false. If you set to true, VS creates method EmailReceiver with Microsoft.Sharepoint.SPEmailMessage insthead of Microsoft.Sharepoint.Utilities.SPEmailMessage. This cause error in build event receiver. I think is an issue/bug of Sharepoint 2010, but I did not found any documentation in MS. Solution : The event receiver work fine without set "handle" property to true. Leave this setting to false. Email Event Receiver: SPContext.Current is null Solution : use list.ParentWeb, from the list property of method EmailReceived. Email Event Receiver: if you have to process attachment of email If y...

Sharepoint 2010 - Impersonate issue in Office and SP2010 when editing Document?

There's a strange behaviour in SharePoint 2010 with Office and impoersonate users. The Scenario: User A is logged into Windows. User A opens SharePoint 2010 site and then signs in under a different user (User B). The user (now logged in as User B in SharePoint) edits a Word document which is required to be checked out. User B checks out document in SharePoint 2010 But when Word opens, a message is displayed saying 'This document is checked out by User B'. or User B opens Word document, client Word opens and ask for check-out. User checks out document in Word But when user try to save, an error message is displayed and in Sharepoint user see that document is checked out by User A. The Word document should be able to be edited because the user context from SharePoint sent to Word should be as User B not User A. It seems that Word is still opening up as User A and because the document is actually checked out to User B it can't be edited. The answer is ...