IT tutorials
 
Technology
 

InfoPath with SharePoint 2010 : Using Template Parts to Create Reusable Form Components (part 1)

8/24/2013 4:48:18 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Create a New Template Part

Scenario/Problem:You need to create a new template part.

Solution:From File, New, select Blank from the Template Parts section.

The first step in creating a new template part is selecting the Blank template in the Template Parts section from the File, New menu page, as shown in Figure 1.

Figure 1. Selecting the Blank template creates a new template part.



2. Add Common Data Connections

Scenario/Problem:You need to add data connections to your template part.

Solution:Use the Data ribbon bar menu to add the appropriate data connections.

You may only add data connections to receive data and not to submit data. Adding data connections to your template part is the same process as if you were using data connections in a SharePoint form. It is best to leverage data connection files already created and deployed to your SharePoint site.

Tip

If you do not have data connection files available, it is best to create your data connections in the template part and then convert them to connection files.

3. Add Common Controls

Scenario/Problem:You need to add controls to your template part.

Solution:Use the Control box to add controls to your template part.

Add controls to your template part just as you would a SharePoint form. Use appropriate table layouts accordingly to arrange the controls on your template part.

Tip

The size of the template part will be the size of the resultant control on your SharePoint forms. Use space sparingly.

4. Add Common Fields

Scenario/Problem:You need to add fields to your template part.

Solution:From the Fields pane, add new fields to your template part’s Main data structure.

Sometimes you need to have fields that are not bound to controls in your template part. Add any additional fields to your main data source just as you would in normal SharePoint forms.

5. Save Your Form Template Part

Scenario/Problem:You need to save your form template part.

Solution:Select Save or Save As from the File menu.

Saving your form template part creates a file with a .xtp2 extension. Click File, Save to save your template part. Enter a name and click OK, as shown in Figure 2.

Figure 2. Saving the form template part creates a .xtp2 file.

Tip

After your template part is ready for primetime, you may want to save it to a SharePoint library to share with your team.

 
Others
 
- SQL Server 2008 R2 : Database Design and Performance - RAID Technology
- SQL Server 2008 R2 : Database Filegroups and Performance, SQL Server and SAN Technology
- SQL Server 2008 R2 : Database Design and Performance - Denormalizing a Database - Essential Denormalization Techniques
- SQL Server 2008 R2 : Basic Tenets of Designing for Performance, Logical Database Design Issues
- SQL Server 2008 R2 : Database Snapshots - Setting Up Snapshots Against a Database Mirror
- SQL Server 2008 R2 : Query Versus Update Performance , Identifying Missing Indexes
- SQL Server 2008 R2 : Query Versus Update Performance , Identifying Missing Indexes
- Windows Server 2008 : Creating Basic Visual Basic Scripts - Using if Statements, Checking for a Value with a Message Box
- Windows Server 2008 : Creating Basic Visual Basic Scripts - Displaying a Message Box with a Visual Basic Script
- Windows Server 2008 : Creating Basic Visual Basic Scripts - Working with filesystemobject
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us