Learn more about SQL Server tools

mssqltips logo
 

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Whitepapers          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories

FREE Webcast - Delivering Microsoft SQL Server High Availability on AWS
 

Reusing InfoPath forms as Content Types - Part 2


By:   |   Read Comments   |   Related Tips: > Sharepoint

Problem

In order to create different InfoPath forms, SharePoint generally needs different form libraries. This is true even if the form shares many common fields. The problem is that creating multiple libraries and developing multiple forms can be costly.

Solution

InfoPath 2007 allows you to publish forms as content types. Content types are a collection of different sets of data. The benefit of using content types is reusability. Rather than building everything from scratch, content types provide a generic set of data objects to start with.

This article is the second of a 2 part series. The first will discuss how to publish InfoPath forms as a content type. This article will show how to reuse content types in another library.

How to reuse content types in another library.

Open the form library settings on which the content type is to be implemented. Click on "Advanced Settings"

customize employee information

Select yes under "Allow management of content types?" and click OK.

employee information

Now you will be able to see a "Content Types" section which will list all the content types that are implemented in the library. For a Form Library, you will see the "Form" type listed by default. Click on "Add from existing site content types".

customize employee information

Add the custom type "EmpContentType" that we created previously from "Available Site Content Types" to "Content types to add." and click OK.

content types

Now you will be able to see the custom type in the custom types list. Click on "Change new button order and default content type".

customize employee information

Change the custom type order to 1, to make it the default content type of the form library. Click OK.

default content type

Go back to library and Click on "New". You'll be able to find that our new content type has been added to the library with all the metadata/fields.

another employee information
Next Steps
  • Read Part 1 on how to publish an InfoPath form as a content type.


Last Update:


next webcast button


next tip button



About the author
MSSQLTips author Rahul Mehta Rahul Mehta is a Project Architect/Lead working at Tata Consultancy Services focusing on ECM.

View all my tips





Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 


Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.



    



Learn more about SQL Server tools