1. SharePoint 2010 List of List Improvements SharePointPro.SG K. Mohamed Faizal Lead Consultant NCS (P) Ltd. 11th Feb 2010 http://faizal-comeacross.blogspot.com/ kmdfaizal@yahoo.com
2. Agenda Lookups and relationships Form web part List & Column Validation Unique values Inline editing Ratings Info path form editing Large lists with list throttling If time permits I will share how to install Windows 7 on VHD boot and Install SharePoint 2010 issues and solutions.
3. List improvement I will not cover Pre-Location External lists Managed Metadata as a column Metadata navigation Index columns Item-level Permissions options Toggle “New Folder” command is available Control Offline Client Availability Datasheet toggle
5. Referential Integrity:- As you know, with SharePoint 2007 we can create relationship between lists using Lookup field. In SharePoint 2010 List also supports Referential Integrity with another list. Lets say if you have two lists called Student and Department, you can create a referential integrity constraint (Cascade Delete or Restrict Delete) between them.
6. Lookup Cascade Delete: Means if item in the parent list is deleted all the associated items in the child list will also be deleted Restrict Delete: If an item in parent list is associated to items in the child list, then this item in parent list cannot be deleted unless its association with all the items from the child list is removed
7. Cascade Delete “Student” & “Department”. And now I am creating a relationship between “Student” and “Department”. Set “Cascade Delete”, which means the when I deleted the “Department” related “Student” also deleted.
8. Restrict Delete “Student” & “Department”. And now I am creating a relationship between “Student” and “Department”. Set “Restrict Delete”, which means the “Department” cannot be deleted if there are one or more “Student” related to it.
9. Lookup column Type Supported Column Types Single line of text Multiple lines of text Choice Number Date and Time Yes/No Unsupported Column Types Calculated Currency Lookup Hyperlink or Picture Custom Columns Person or Group
10. DEMO… Create Student List Create Mark List Reference lookup for Mark list Cascade Delete When Student is Deleted the respective mark list need to be deleted Restrict Delete When you try to delete Student that has reference system prompt for an error?
16. Column and list level validation SharePoint 2010 is validation of item creation based on either individual column value validation or an overall item validation based on multiple columns
18. DEMO… Validation ID first letter must be Start with “S” end with “G” the length of ID must be 10 char.
19. List Validation You can only compare column values to one another in a list level validation. A validation formula at the column level cannot include any other columns besides itself. For example, [Column1]>[Column2] is an invalid formula and SharePoint will not allow it to be used at the column level.
22. DEMO… Validation Student Papers 1 to 5 the score must be >0 and <=100.
23. Conflicts What if you have both column level validation and list level validation? The column level formulas will be evaluated first, then the list formulas What if the column and list level validations are in conflict? Example - at the list level, you require that [Text1] = [Text2], but each column has it's own validation; [Text1]="AAA", and [Text2]="BBB". In this case, it will be impossible to actually submit a list item. The column validations are evaluated first, but if the values validate here, they will of course fail the list validation.
25. Unique column In SharePoint 2007 you couldn't enforce uniqueness on a column in a list or document library to ensure that the column would never have duplicate values.
26. Unique column Type Supported Column Types Single line of text Choice (single value) Currency Number Date and Time Lookup (multi-valued) Person or Group (single value) Unsupported Column Types Choice (multi-valued) Calculated Hyperlink or Picture Lookup (single value) Custom Columns Person or Group (multi-valued) Multiple lines of text Yes/No
27. Limitations Remove the index of a unique column. You must change the column from a unique column to one that allows duplicate values first, and then remove the index Change existing column to unique values. If existing column contain duplicate values You must remove all the duplicate values to a unique column and then set to unique values. Change the data type of the unique column Change the column to allow duplicate values, remove the index, change the column to the other supported data type, and then make the column unique You cannot copy a file to a library by using the Open with Explorer command.
28. Limitations You cannot break inheritance of permissions from a list to a list item. Item-level permissions for not allowed If list that contains items with unique permissions. List items with content approval enabled Case-insensitive “Product 1” and “product 1”. This is because these two values are considered equivalent. Lookup column supported uniqueness in this case means that more than one list item in the child list cannot look up to the same list item in the parent list
40. Rating In SharePoint 2007 many customer requested for rating features. In SharePoint 2010 the ratings become very generic things that have a lot of flexibility. Rating features allow users to rate content (of any type, Lists, Documents, Pages on a site, and even Content Types) and store that ratings data in the database. Rating feature is only available in SharePoint Server 2010 and not available in SharePoint Foundation 2010
41. Rating The ratings service uses a ratings control seen here that uses two star displays. The first display shows the average rating. As you hover your mouse over the stars the colour changes to yellow to reflect the rating you’re about to assign via a mouse click