Skip to main content

Posts

Showing posts from September, 2011

Object Model SPListItem Class

You can use an indexer to return a single item from a list item collection. For example, if the collection is assigned to a variable named  collListItems , use  collListItems[ index ]  in Microsoft C#, or  collListItems( index )  in Microsoft Visual Basic, where  index  is the index number of the item in the collection, or the internal name or display name of a list field. For an indexer based on a name, Microsoft SharePoint Foundation first looks for the field by internal name and then by display name. To assign values to a field in a list item using an indexer, the values must be represented in a format that is appropriate for each built-in field type. The following table shows how the data types that are used in SharePoint Foundation field types map to Microsoft .NET Framework types. Name Format Attachments System.Boolean Boolean System.Boolean Calculated N/A Choice System.String Computed N/A Counter Syste...

Microsoft Office SharePoint Server 2007 (MOSS)

Overview Today I want to talk in depth about a feature of Microsoft Office SharePoint Server 2007 (MOSS) that shows you just how extensible the SharePoint 2007 platform is! That feature is the ability to add custom event handlers to sites, lists, items and content types in your portal. What is a custom event handler? A custom event handler is a .Net assembly that contains the additional business logic you need to run when the event occurs in SharePoint. Why did I pick this feature? Well, no portal or business application ever really lives in isolation to your other Line of Business (LOB) applications, and shouldn't! Your portal solution needs to be dynamic, expect change and work seamlessly with the other systems in your environment. So, you may ask, what does this have to do with Event Handlers? Well, event handlers allow you to add [SOMETHING] your business needs into the functionality of SharePoint. [SOMETHING] examples: o      Retrieve info...