SharePoint Events

 ProjectReady Applications for the AEC
 05/11/16 - Webcast: Legal Matter & Email Management with Microsoft Outlook
 05/12/16 - Webcast: Enterprise Records Management in SharePoint & Office 365
 05/19/16 - Webcast: Document Control Tracking, Reporting, & Collaboration for the AEC in SharePoint & Office 365
 06/08/16 - Webcast: Compliant Legal Document Control & Collaboration Internal and External
 06/09/16 - Webcast: Best New Security Features of SharePoint 2016
 06/10/16 - Webcast: Why Office 365 and the Microsoft Cloud is Ready for the Financial Services Industry
 06/16/16 - Webcast: Driving ROI for the AEC with SharePoint and Office 365
(More Links...)

 SharePoint Videos

 Best New Features of SharePoint 2016
 The Value of the Microsoft Cloud: Understanding the Scalability, Affordable Storage & Security Advantages of Office 365
 Task, Resource & Utilization Management & Reporting for the AEC with SharePoint and Office 365
 Legal Matter Task Management and Reports in SharePoint and Office 365
 What’s Coming in Office 365 & SharePoint 2016
 Automating Contract Management with Workflow in the Cloud or On-Premise
 Manage Email in the Cloud or On-Premise with SharePoint & Office 365
 Governance Essentials for SharePoint 2013 and SharePoint Online
 Easily Move Email, Files and SharePoint to Office 365
 Enterprise Workflow in the cloud with SharePoint & Office 365
 Why SharePoint 2013
 SharePoint 2013 vs SharePoint Online and Office 365 Security, Compliance and eDiscovery
 Expanding the Use, Potential and Value of SharePoint and Office 365 through 3rd Party Applications
 Keys to Successful SharePoint Initiatives and User Adoption
 SharePoint 2013 vs. SharePoint Online: Workflow
 Ensure Auditability and Compliance with Advanced Workflows in SharePoint
 SharePoint 2013 vs. SharePoint Online and Office 365: Enterprise Content Management
 SharePoint 2013 vs. SharePoint Online and Office 365: Business Intelligence
 SharePoint 2013 vs. SharePoint Online: Search
 Power Business Intelligence for SharePoint Online and Office 365
(More Links...)

 Archives ‭[1]‬

Opening SharePoint Links in a new window
Mail Enabled Lists vs. The Missing Windows 2008 POP3/IMAP Server 
7 Tools for SharePoint Developers
Public Facing Masterpage Techniques
How to Quickly Deploy and Activate a Timer Service to Your Site Collection
Custom SharePoint Master Page Feature with WSP Builder
Date Math with InfoPath
Enterprise Search Tricks and Tips Part 1
Populating Word Documents With SharePoint Data. Try The DIP!
Programmatic Deep Dive into Blank SharePoint Lookup Columns
1 - 10Next
Custom Views for Multiple Content Types within a Single List

By: Kathryn Bartlett

In this example, we have two custom content types based off the Event list content type: (1) “Event Type 1”, with single line text fields “Column A” and “Column B”, and (2) “Event Type 2”, with single line text fields “Column Y” and “Column Z”.  Create a Calendar, “Sample Calendar”, and add these two content types to the list.  After creating an event of both content types, we see that the add, edit, and display forms all act as we would hope – only columns in that content type appear.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 1 - Add/Edit Event Type 1

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 2 - Add/Edit Event Type 2

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 3 - View Event Type 1

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 4 - View Event Type 2

However, we may not need the Category, All Day Event, Recurrence, or Workspace columns.  In this example, we want to remove them from the views.  Open SharePoint Designer 2010, open your site, and click on the list.  On the right, there is a section for Forms.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Click New… and create a new item form that is and use the content type Event Type 1.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List 

Now this form will appear in the Forms panel.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Click nf1.aspx to edit the form.  From the split view, find the table row tags containing the columns you want to delete and remove these lines from the page.  Set this as the default New Form page, and create a new Event Type 1 event.  Creating an event of Event Type 1, it seems all is set. 

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

However, now when we go to create an event of Event Type 2, we get the same new form as in Event Type 2.  We need to create a new form for Event Type 2 in the same way we did for Event Type 1 above. 

If we set this new form to be the default, we run into the same issue when we try to create an event of Event Type 1.  To resolve this, we need to associate the form with the content type itself, not with the list. Click on the sample calendar in SharePoint Designer.  At the bottom left, there is a panel for Content Types.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Click on our content type Event Type 1.  On the top right, there is a panel for Forms.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Click the section for New Form to enter the URL of our custom new form, enter the URL, hit Enter, and save your changes. 

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Do the same for Event Type 2. Now when we try to add an event of each content type, we get the appropriate new forms.

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 5 - Custom New Form for Event Type 1

Custom_Views_for_Multiple_Content_Types_within_a_Single_List

Figure 6 - Custom New form for Event Type 2

Repeat the same steps for the Edit and Display forms to complete the custom views.

By: Kathryn Bartlett

        

 Subscribe

  GigWerks RSS  Gig Werks Mailing List 

 Contact Us

 Connect

 Resources

 On Demand SharePoint Webcast Recordings
 Upcoming Webinars
 SharePoint Resources
 Business Intelligence Resources
 Gig Werks Website



©2009 Gig Werks. All rights reserved. Privacy Policy