IT tutorials
 
Technology
 

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

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

7. Use Your Template Part as a Control

Scenario/Problem:You want to use your form template part in a SharePoint form.

Solution:Drag your template part control onto your form.

After you have added your template part as a custom control, you may use it like any other control. Dragging the template part onto your form adds the control to your form, as shown in Figure 8. The controls and fields from your template part are added to the form, as well.

Figure 8. Dragging your template part onto your form adds the controls and fields.

Tip

In your template part, you should rename the myFields main data source to the name of your template part such that when using it in a form, the fields group is more descriptive.

8. Change the Name of Your Custom Control

Scenario/Problem:You want to change the name that appears in the Controls list for your form template part.

Solution:In your form template part, modify the template part properties.

The custom control name defaults to the filename of your template part but often times there are no spaces and it may not be the name you want displayed in the control box.

To modify the custom control name used for your template part, follow these steps:

1.
With your form template part file opened in InfoPath Designer, select File, Info to display the Form Information screen, as shown in Figure 9.

Figure 9. Select File, Info to display the Form Information screen.

2.
Click the Template Part Properties button to display the Template Part Properties dialog.

3.
Enter a new name for the form template control, as shown in Figure 10, and click OK. This determines what name appears in the controls box.

Figure 10. Entering a name for the template part determines the control name in the controls box.


4.
Click File, Save to save the changes to your form template part file.

Tip

Use a control name that is descriptive and clear to others if you intend to share your form template part.


Note

You will need to remove the old template part custom control and add the new one to see the name changes.

9. Change the Icon of Your Custom Control

Scenario/Problem:You want to change the icon that appears in the Controls list for your form template part.

Solution:In your form template part, modify the template part properties.

The custom control icon defaults to the InfoPath template part icon. Having several of these in the Controls list could cause confusion (or just look boring).

To modify the custom control icon that is used for your template part, follow these steps:

1.
With your form template part file open in InfoPath Designer, select File, Info to display the Form Information screen.

2.
Click the Template Part Properties button to display the Template Part Properties dialog.

3.
Click Browse to browse for a new picture file and click Open on the file dialog.

4.
Click OK on the Template Part Properties dialog.

5.
Click File, Save to save the changes to your form template part file.

Note

You will need to remove the old template part custom control and add the new one to see the icon changes.

 
Others
 
- InfoPath with SharePoint 2010 : Using Template Parts to Create Reusable Form Components (part 2) - Add Your Template Part as a Custom Control
- InfoPath with SharePoint 2010 : Using Template Parts to Create Reusable Form Components (part 1)
- 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
 
 
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