Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402.

Similar presentations

Presentation on theme: "Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402."— Presentation transcript:


2 Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402

3 Arthur Brost Portals and Collaboration Practice Manager for twentysix New York twentysix New York Gold Managed Partner Practices in Enterprise Integration, Business Intelligence and Portals and Collaboration

4 Customizing List Item Forms SharePoint Designer Custom ASPX page Schema.xml Control Templates HTML ASP.NET Server Controls Silverlight Controls List Field Iterator Custom Field Types AJAX Toolkit Controls

5 Used to display individual items New, Display and Edit forms Auto-generated based on list schema Uses ListForm control template to layout the form.

6 SharePoint Designer Custom ASPX page Modify Schema.Xml Form elements Control Templates

7 Applies to single list instance ListForm Web Part Custom List Form control New fields not automatically added


9 Specified in List Feature or Schema Same form as SharePoint Designer By Default no code allowed Adding Web Parts is possible but not recommended / supported

10 <ListTemplate Name="MyTemplate" Type="2100" … NewPage="MyCreateList.aspx" EditPage="MyEditList.aspx … >

11 … <Form Type="DisplayForm SetupPath="pages\form.aspx Url="Forms/DispForm.aspx />...

12 Supported in WSS 2.0 Code form elements in CAML Still supported in WSS 3.0 by using the UseLegacyForm attribute

13 … …

14 Combination of HTML and Child Controls Used by the ListForm Web Part Registered by list type or content type Stored in …\12\TEMPLATE\CONTROLTEMPLATES May override default templates

15 DocumentLibraryFormDocumentLibraryFormCoreDocumentLibraryFieldsCompositeField NumberField


17 <%@ Register TagPrefix="MyControls" Assembly="MyControls, … Namespace="MyControls" %> … … … …

18 … …

19 … MyListForm ListForm

20 //List … SPList list = web.Lists["MyList"]; String NewFormTemplate = list.Forms[PAGETYPE.PAGE_NEWFORM].TemplateName ; //Content Type SPContentType type = list.ContentTypes[0]; String NewFormTemplate = type.NewFormTemplateName; type.NewFormTemplateName = "MyListForm"; type.Update(); …

21 Two lists: Photos, and Ratings Multiple ratings per photo Ratings contains a lookup to Photos

22 Customized List Item Form template demo

23 Custom ASP.Net WebControl on a List Item form demo

24 Iterates fields Used in various control templates Override IsFieldExcluded for field level security

25 Suppress fields based on user demo

26 Field Type Definition Render Pattern (CAML) Field Class Derived from SPField Allows Custom Validation Field Control Derived from BaseFieldControl Specifies Field Template

27 Custom

28 [Guid("42FD6883-EA0D-43fb-9201-1443A348334B")] public class MyFieldControl : Microsoft.SharePoint.WebControls.NumberField { … protected override string DefaultTemplateName { get { return "CustomFieldTemplate"; }

29 [Guid("2e0a281b-ef91-46ab-86f3-f6aadaa4da0e")] public class MyField : SPFieldNumber { public MyField(SPFieldCollection fields, string fieldName) : base(fields, fieldName) … public override BaseFieldControl FieldRenderingControl { … get { BaseFieldControl fieldControl = new MyFieldControl(); fieldControl.FieldName = this.InternalName; return fieldControl; }

30 CustomType Number Custom Type Sample Custom Field Type TRUE MyNameSpace.MyField, MyAssembly, Version=, Culture=neutral, PublicKeyToken=b3e674199e6c34cb …

31 Custom Field Type Template Using AJAX demo

32 Silverlight Controls on a List Item Form demo

33 Creating Custom Form Templates How to: Create a Custom Control for a Form How to: Create a Custom Field Type and Field Control Walkthrough: Creating a Custom Field Type

34 Arthur Brost



37 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Download ppt "Arthur Brost Portals and Collaboration Practice Manager twentysix New York I BP402."

Similar presentations

Ads by Google