56
SharePoint 2010 List Improvements K. Mohamed Faizal Lead Consultant NCS (P) Ltd. http://faizal- comeacross.blogspot.com/ [email protected] @kmdfaizal

SharePoint 2010 list improvements

Embed Size (px)

DESCRIPTION

Topic 1 : SharePoint 2010 List Improvements In this session you will learn SharePoint 2010 List Improvements such as Column Validation, List Validation Settings, List Lookups and Relationships, List inline editing and Listing customization on Info path. Form Web part Calendar Overlay Per location view

Citation preview

Page 1: SharePoint 2010 list improvements

SharePoint 2010 List Improvements

K. Mohamed FaizalLead Consultant NCS (P) Ltd.http://faizal-comeacross.blogspot.com/ [email protected] @kmdfaizal

Page 2: SharePoint 2010 list improvements

AgendaLookups and relationshipsForm web partList & Column ValidationUnique valuesInline editingRatingsInfo path form editingLarge lists with list throttling

Page 3: SharePoint 2010 list improvements

Lookups and relationships

Page 4: SharePoint 2010 list improvements

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.

Page 5: SharePoint 2010 list improvements

Lookup

Cascade Delete: Means if item in the parent list is deleted all the associated items in the child list will also be deletedRestrict 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

Page 6: SharePoint 2010 list improvements

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.

Page 7: SharePoint 2010 list improvements

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.

Page 8: SharePoint 2010 list improvements

Lookup column TypeSupported Column Types

Single line of textMultiple lines of textChoice NumberDate and Time Yes/No

Unsupported Column TypesCalculatedCurrencyLookupHyperlink or PictureCustom ColumnsPerson or Group

Page 9: SharePoint 2010 list improvements

DEMO

Page 10: SharePoint 2010 list improvements

Form Web Parts

Page 11: SharePoint 2010 list improvements

Display form view

Name : FaizalClass : XII Student ID : S1234567G

ResultsTerm Subject 1 Subject 2 Subject3 Subject 4 Subject 5 Student IDTerm 1 45 50 60 70 100 S1234567GTerm 2 45 50 60 70 100 S1234567G

Page 12: SharePoint 2010 list improvements

Form Web Parts

Page 13: SharePoint 2010 list improvements

v

Page 14: SharePoint 2010 list improvements

DEMO

Page 15: SharePoint 2010 list improvements

Column and list level validation

Page 16: SharePoint 2010 list improvements

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

Page 17: SharePoint 2010 list improvements

Supported Type

Single Line of Text Choice (single only) Number Currency Date & Time

Page 18: SharePoint 2010 list improvements

DEMO…Validation ID first letter must be Start with “S” end with “G” the length of ID must be 10 char.

Page 19: SharePoint 2010 list improvements

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.

Page 20: SharePoint 2010 list improvements

Validation Settings

Page 21: SharePoint 2010 list improvements

Validation

Page 22: SharePoint 2010 list improvements

DEMO

Validation Student Papers 1 to 5 the score must be >0 and <=100.

Page 23: SharePoint 2010 list improvements

ConflictsWhat 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.

Page 24: SharePoint 2010 list improvements

Unique column

Page 25: SharePoint 2010 list improvements

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.

Page 26: SharePoint 2010 list improvements

Unique column TypeSupported Column Types

Single line of text Choice (single value)CurrencyNumberDate and Time Lookup (multi-valued)Person or Group (single value)

Unsupported Column TypesChoice (multi-valued)CalculatedHyperlink or PictureLookup (single value)Custom ColumnsPerson or Group (multi-valued)Multiple lines of textYes/No

Page 27: SharePoint 2010 list improvements

LimitationsRemove 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 columnChange 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.

Page 28: SharePoint 2010 list improvements

Limitations

You cannot break inheritance of permissions from a list to a list item.Item-level permissions for not allowedIf list that contains items with unique permissions.List items with content approval enabledCase-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

Page 29: SharePoint 2010 list improvements

Set Unique values

Page 30: SharePoint 2010 list improvements

When you try to remove index ?

Page 32: SharePoint 2010 list improvements

DEMO

Page 33: SharePoint 2010 list improvements

Inline editing

Page 34: SharePoint 2010 list improvements

Inline editing

Page 35: SharePoint 2010 list improvements

DEMO

Page 36: SharePoint 2010 list improvements

Rating

Page 37: SharePoint 2010 list improvements

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

Page 38: SharePoint 2010 list improvements

RatingThe 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

Page 39: SharePoint 2010 list improvements
Page 40: SharePoint 2010 list improvements

DEMO

Page 41: SharePoint 2010 list improvements

Info path edit

Page 42: SharePoint 2010 list improvements

Info path edit

Page 43: SharePoint 2010 list improvements
Page 44: SharePoint 2010 list improvements

Large lists with list throttling

Page 45: SharePoint 2010 list improvements

List Resource throttle or limit

FEATURE MAXIMUM LIMIT 2010 MAXIMUM LIMIT 2007

Number of items in a list or library

50 million per library 5 million per library

Size of an individual file item or item attachment

2 Gigabytes 50 MB (2 Gigabytes)

Item 5,000 per view 2,000 per view

Page 46: SharePoint 2010 list improvements

Powershell script to create items$siteurl = “http://Faizal-PC”$mysite=new-object Microsoft.SharePoint.SPSite($siteurl)$spWeb = $mysite.OpenWeb()$spList = $spWeb.Lists["powershell"]$i = 1001do { Write-Host “Item – “$i $spitem = $spList.Items.Add() $spitem["Title"] = $i.tostring() $spitem.Update() $i++}while ($i -le 7000)

Page 47: SharePoint 2010 list improvements
Page 48: SharePoint 2010 list improvements
Page 49: SharePoint 2010 list improvements

DEMO

Page 50: SharePoint 2010 list improvements

Calendar Overlay

Page 51: SharePoint 2010 list improvements

DEMO

Page 52: SharePoint 2010 list improvements

Other List ImprovementsPre-LocationExternal listsManaged Metadata as a columnMetadata navigationIndex columnsItem-level Permissions optionsToggle “New Folder” command is availableControl Offline Client AvailabilityDatasheet toggle

Page 53: SharePoint 2010 list improvements

Q&AQuestions & Answers

Page 54: SharePoint 2010 list improvements

Resources

SharePoint Developer Centre

SharePoint forum

http://faizal-comeacross.blogspot.com/

Required slide

http://www.chakkaradeep.com/

Page 56: SharePoint 2010 list improvements

We value your feedback!Required slide

Please remember to complete the overall conference evaluation form (in your bag) and return it to the Registration Counter on the last day in return for a Limited Edition Gift