SharePoint 2010 Training Session 4

1,038 views
972 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,038
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
41
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

SharePoint 2010 Training Session 4

  1. 1. SharePoint 2010 Session - 4By: Usman Zafar Malik[MCTS: MOSS 2007], [MSCBSS: CRM 3.0 / 4.0], MCP
  2. 2. SharePoint 2010 Development
  3. 3. SharePoint 2010 Development• Content Types• Site Columns• List and Libraries• List Definitions• Event Receiver on Features• Event Receiver on Lists• List Instances• Page Layouts
  4. 4. SharePoint 2010 Site Columns
  5. 5. Site ColumnsWhat are site columns?• A column represents an attribute, or piece of metadata, that the user wants to manage for the items in the list or content type to which they added the column.Possible scopes• When you create a site column on a site, that site column also becomes available to any child sites, and thereby, the lists on those sites.
  6. 6. Site Columns<Field ID="{9A77BCEB-5230-48f2-93ED-D87DAAEC6998}" Name=“SC1" StaticName=“SC1" SourceID="http://schemas.microsoft.com/sharepoint/v4" Group=“Group Site Columns" DisplayName=“SC 1" Type="Text" Required="FALSE" Sealed="FALSE"></Field>
  7. 7. Site ColumnsType Description Type FormatsText Single line of textNote Multi line of text Plain Text RichText=”FALSE” (default value) Rich Text RichText=”TRUE” RichTextMode=”Compatible” (default value) Support simple html, bold, italics, bulleted or numbered lists, colored text, and background colors Enhanced Text RichText=”TRUE” RichTextMode=”FullHtml” Supports additional options for hyperlinks, pictures, and tables
  8. 8. Site ColumnsType Description Type FormatsChoice Single Choice Drop-Down Menu or Combo Box Format=”Dropdowns” Radio Buttons or Check Boxes Format=”RadioButtons”MultiChoice Select Multi ChoiceInteger Integer value Minimum Value (0 for example) Min=”0″ Maximum Value (100 for example) Max=”100″ Decimal Places (Default is Automatic, example 2 decimal places) Decimals=”2″ Show as Percentage (Default is False) Percentage=”FALSE”
  9. 9. Site ColumnsType Description Type FormatsCurrency Currency value Minimum Value (0 for example) Min=”0″ Maximum Value (100 for example) Max=”100″ Decimal Places (Default is Automatic, example 2 decimal places) Decimals=”2″ Currency Format This sets the display format of the currency. LCID=”3081″Boolean Yes/No value Yes/True = 1 No/False = 0Lookup Lookup column from some other list
  10. 10. Site ColumnsType Description Type FormatsDateTime Date Time value Date and Time Format Show the date only:- Format=”DateOnly” Show the date and time:- Format=”DateTime”User Select Single Person or Group People Only UserSelectionMode=”PeopleOnly” People and Groups UserSelectionMode=”PeopleAndGroups” Show field ShowField=”Name”MultiUser Select Multiple Persons or GroupsURL Hyperlink or Picture Hyperlink Format=”Hyperlink” Picture Format=”Image”
  11. 11. Site Columns
  12. 12. Site Columns
  13. 13. Site Columns
  14. 14. Site Columns
  15. 15. Site Columns
  16. 16. Site Columns
  17. 17. SharePoint 2010 Content Types
  18. 18. Content TypesWhat is content type?• A content type is simply a way to define a particular set of information. Possible scopes – Farm: No – Web Application: No – Site Collection: Yes – Web Site: Yes
  19. 19. Built in Content Types
  20. 20. Content Types• Two valid ways to construct a content type ID• Parent content type ID + two hexadecimal values (the two hexadecimal values cannot be "00")• Parent content type ID + "00" + hexadecimal GUID
  21. 21. Content Types
  22. 22. Content Types<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: Item (0x01) --> <ContentType ID="0x010058be2d7367e54e128230e227d79d6112" Name="DummySharePointProject - DummyContentType1" Group="Custom Content Types" Description="My Content Type" Inherits="TRUE" Version="0"> <FieldRefs> <FieldRef ID="{9A77BCEB-5230-48f2-93ED-D87DAAEC6998}" Name="SC1" /> <FieldRef ID="{6AAD913B-D930-49b5-8BCD-99FAB8857257}" Name="ExpiresOn" /> <FieldRef ID="{D38E97DA-CD82-4a77-9086-3B97A6D61A92}" Name="Activated" /> </FieldRefs> </ContentType></Elements>
  23. 23. Content Types
  24. 24. Content Types
  25. 25. Content Types
  26. 26. Content Types
  27. 27. Content Types
  28. 28. Content Types
  29. 29. Content Types
  30. 30. Content Types
  31. 31. SharePoint 2010 List Definitions
  32. 32. List DefinitionsWhat is List Definition?• List Definition as a Blueprint or template of a list using which you can create instances of list
  33. 33. List Definitions
  34. 34. List Definitions
  35. 35. List Definitions
  36. 36. SharePoint 2010 List Instance
  37. 37. List Instance What is List Instance?• An instance or object of List created from the List Definition. Possible scopes – Farm: No – Web Application: No – Site Collection: Yes – Web Site: Yes
  38. 38. List Instance
  39. 39. List Instance
  40. 40. List Instance
  41. 41. SharePoint 2010 Event Receiver on Features
  42. 42. Event Receivers What are Event Receivers?• In Simple words, Event Handlers. Perform an operation when an event occurred.
  43. 43. Event ReceiversTypes of Event Receivers List Events - Adding/ed a new list field. - Updating/ed a field. List Item Events - Adding/ed a new list item or document. - Document checking/ed in or out. - Adding/ed an attachment. - Deleting/ed an item or document.
  44. 44. Event ReceiversTypes of Event Receivers List Email Events - A list received an email. Web Events - Deleting/ed a site collection or site. - Creating/ed a new site collection or sub site. Feature Events - Feature activating/ed or deactivating/ed. List Workflow Events - A workflow is starting/ed, postponed, or completed
  45. 45. Event Receiver on Feature
  46. 46. Event Receiver on Feature
  47. 47. SharePoint 2010 Event Receiver on Lists
  48. 48. Event Receiver on List
  49. 49. Event Receiver on List
  50. 50. Event Receiver on List
  51. 51. Event Receiver on List
  52. 52. Adding List Event Receiver in List’s Feature
  53. 53. Adding List Event Receiver in List’s Feature
  54. 54. Adding List Event Receiver in List’s Feature
  55. 55. SharePoint 2010 Page Layouts
  56. 56. Page Layouts What is Page Layout?• A template on which page is created.
  57. 57. Page Layouts
  58. 58. Page Layouts
  59. 59. Page Layouts
  60. 60. Thanks !

×