Showing posts with label Content Types. Show all posts
Showing posts with label Content Types. Show all posts

Thursday, March 17, 2011

SharePoint 2010 Training Day 4

Today the fourth day of the Developing Solutions with SharePoint 2010 training.
We discussed today chapter 10, 11 and 12.
  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)
Tenth Chapter
There are 3 different Client Object Models. Each Client Object Model is created for a other language, .NET, Silverlight, EXMAScript (Javascript). The client object model provides an abstraction layer so process off the SharePoint server can interact with SharePoint using a consistent API that is very closely matched to the familiar server API.
ClientServer

ClientContext

SPContext

Site

SPSite

Web

SPWeb

List

SPList

ListItem

SPListItem

Field

SPField


The Member names mostly the same from server to client. "SPWeb.QuickLaunchEnabled = Web.QuickLaunchEnabled"


The diagram displays how the transport mechanism works.
Before you execute the ExecuteQuery method, you need to indicate which data you want to retrieve from the server. You van use the ClientContext.Load method for this purpose. You cannot only retrieve data using the ClientOM, but you also create object using specific classes.
  • ListCreationInformation:
    - using this class to create a new list. You can set properties like Title and TemplateType before calling the web.Lists.Add method, pasasing the ListCreationInformation object as argument.
  • ListItemCreationInformation
    - using this class to create a new list item on an existing list. The AddItem method on the List object accepts the ListItemCreationINformation argument and returns the new item of type ListItem. You van fill out the list item using the listItem["Title"] syntax for the different columns on the list, and calling the Update() method on the list item.
  • WebCreationInformation:
    - if you want to create a new SharePoint site, instantiate an object of the type and pass it to the Webs.Add method of a Web object.
  • NavigationNodeCreationInformation
    - use this class to create a new navigation node.
Eleventh Chapter
In SharePoint 2007 you can attach workflows to list items and documents. Additionally, in SharePoint 2010 you can add workflows to document sets and sites. If you look in SharePoint 2010 to the monitoring of the workflow process you can see a nice picture of which path the workflow has taken to complete.
New in 2010 is that you can use Visio to build the first workflow. Your manager can build the screens en export it for you. You can import it into SharePoint Designer 2010 en edit it further. On your time you can edit it in Visual Studio 2010 to fine tune it for the SharePoint site or list you are going to add the workflow.

Twelfth Chapter
This chapter we have got the theory. Tomorrow we have to do the labs so a write something about this chapter tomorrow.

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.

Popular Posts