Archive

Archive for May, 2008

properties.ListItem in ItemAdded is NULL – Workaround to get ListItem

May 5, 2008 1 comment
i saw this question alot on forums and decided to BLOG it for quick reference. This is a known issue and will be addressed in future. However it is very common that one need ListItem object in ItemAdded event. Workaround is to get the Listitem using ListItemId and spList.GetItemById. here is code snippet
 
   SPWeb oSPWeb = properties.OpenWeb();
   SPListItem oListItem = oSPWeb.Lists[properties.ListId].GetItemById(properties.ListItemId);

 

Categories: Sharepoint 2007

Create Solution Package ( WSP File )

There are three ways i have experienced with on creating a solution package in sharepoint. I liked the 1st one alot. I will post more details this week, Just started this so i can complete this topic this week.
 
1- CREATING SOLUTION PACKAGE ( USING DDF File, Manifest file and MAKECAB.exe)
 
 
2- SOLUTION PACKAGE USING WSPBuilder
 
3- SOLUTION PACKAGE Using Visual Studio Extension
 
Categories: Sharepoint 2007