Wednesday, March 16, 2011

SharePoint 2010 Training Day 3

Today the third day of the Developing Solutions with SharePoint 2010 training.
We discussed today chapter 7, 8 and 9.
  1. SharePoint 2010 Developer Roadmap
  2. SharePoint Foundation Development
  3. SharePoint Developer Tools in Visual Studio 2010.
  4. Creating Sandboxed Solutions
  5. Pages and Navigation
  6. Developing Web Parts
  7. Creating Fields, Site Columns & Content Types
  8. Creating Lists & Event Handlers
  9. Accessing Data using LINQ to SharePoint
  10. Client Object Model
  11. Developing SharePoint 2010 Workflows
  12. Business Connectivity Services (BCS)
  13. Web Content Management (WCM)
  14. Enterprise Content Management (ECM)
Seventh Chapter
This chapter shows us how we can create field, site columns & content types. If you need to create a site column with a feature you need to give the fields an unique id by a GUID. We have seen how you can create fields, site columns and content types by a xml file and in the browser with an user interface.
If you create a custom field control you need to create a rendering control and field values of the control in classes and usercontrols. It is also possible to create a Mobile Rendering control that works for a mobile phone. The usercontrol needs a tag for wich you have to set the ID attribute to a unique value. The FieldRenderingControl property you need to override in the custom field type.
Reviewing all the Moving Parts.
  • Field type class (ie: SPFieldText)
    - Contains definition of custom field type
  • Field value class (ie: SPFieldMultiColumnValue)
    - Contains custom data structure serialization / deserialization
  • Field Control class (ie: BaseFieldControl)
    - Contains Server-side logic for the rendering contgrol
  • Field control rendering (ie: litware.ascx)
    - ASXC file containing new / edit form
  • Field type definition (ie: fldtype_Litware.xml)
    - Contains definition and metadata of the field type

Eighth Chapter
The most parts of this chapter are the same as in SharePoint 2007. Something that is added to the events are the WebAdding, WebProvisioned, ListAdding, ListAdded, ListDeleting and the ListDeleted events. The "-ing" events are triggerd before the action and the "-ed" events are triggerd after the the action. You can use the AfterProperties or BeforProperties in the events to get information of the changed or changing fields.

Ninth Chapter
New in SharePoint 2010 is LINQ to SharePoint. Before you can use LINQtoSharePoint you need to use SPMetal.exe to create DataContext class. This class you need to import in your project and you can use LINQ within your project. If you make a chang in the SP lists or Type you need to run again SPMetal.exe.

No comments:

Popular Posts