Thursday, May 22, 2014

Difference Between .dwp and .webpart

    1. Dwp was the file extension used in version 2 of SharePoint and .webpart is a new extension used in version 3
    2. Version number on the xmlns attribute is different [2->2003, 3-> 2007]
    3. The main difference is that all properties passed to the web part are specified with a property element and a name attribute in version 3. Version 2 uses different element names for everything.

Monday, May 12, 2014

Workaround for Lookup field in SharePoint list templates

  1. Download the "Template-Actors.stp" file from "List Templates"
  2. Rename the file and change the extension of the file from ".stp" to ".cab"..
  3. Once you have the extension as ".cab", extract the "Manifast.xml" file.
  4. Get the list url of the lookup list and replace the guid with th url.
  5. Save the manifest.xml
  6. Open a VS.NET command prompt.
  7. Run the makecab command as follows:
  8. makecab manifest.xml [yourlist].stp
  9. Import the new STP into the destination Web’s list template gallery. You will need to delete it if it has previously been imported.
  10. Create a new list based upon the new STP file.

The lookup column on the new list should retain all the data that was in the source list.

Error while updating the farm credentials.

I was getting the below error when i am trying to update the farm credentials using stsadm command in sharepoint 2010.
Value cannot be null.
Parameter name: farm
I got it because I had SQL Server (SHAREPOINT) not running. I have just started and ran the same command and it worked.
stsadm -o updatefarmcredentials -userlogin XXX -userpassword XXX