Monday, January 14, 2013

What is new in InfoPath 2013 compared to InfoPath 2010 ?

There is just a minor change in the look and feel of  the InfoPath 2013 forms from InfoPath 2010 .

Please find the details at http://msdn.microsoft.com/en-us/library/office/jj229830(v=office.15).aspx#odc_off15_ta_WhatsNewforO15Developers_InfoPath

There are few more links which talks about the minor change from InfoPath 2013 from InfoPath 2010

http://infopathtips.com/2012/10/28/whats-new-in-infopath-2013/

http://www.projectpoint.at/?p=925

Tuesday, October 25, 2011

How to Reuse the Template Parts?

If you want to base the design of a new template part on an existing template part, you must open the existing template part, change its name in the Template Part Properties dialog box, and then save the new template part with another, distinguishing file name. When you change the template part name in the Template Part Properties dialog box, the template part ID is updated automatically. This ID further distinguishes one template part from another.

1. On the File menu, click Design a Form Template.

2. Under Open a form template in the Design a Form Template dialog box, click On My Computer.

3. In the Files of type list, click InfoPath Template Parts.

4. Browse to and click the template part that you want to open, and then click Open.

5. On the File menu, click Properties.

6. In the Template Part Properties dialog box, enter a new name in the Template part name box.
When you do this, the identifying text in the Template part ID box reflects the new name. The template part ID is generated automatically by InfoPath. It must be unique for each new template part that you create.

7. On the File menu, click Save As, and enter a new file name for the template part.

What are the steps to create a Template Part ?


In the Design a Form dialog box, you can choose to design a template part instead of a form template. If you do this, InfoPath features that aren't supported in template parts are either hidden or disabled so that you aren't tempted to use them in your template part.

1. On the File menu, click Design a Form Template.

2. Under Design a new in the Design a Form Template dialog box, click Template Part.

3. In the Based on gallery, do one of the following:

o To define the data source (data source: The collection of fields and groups that define and store the data for an InfoPath form. Controls in the form are bound to the fields and groups in the data source.) as you design the template part, click Blank.

o To use an XML document (.xml) file or an XML Schema (XML Schema: A formal specification, written in XML, that defines the structure of an XML document, including element names and rich data types, which elements can appear in combination, and which attributes are available for each element.) (.xsd) file as the data source for the template part, click XML or Schema.

Note If you base your template part on an XML document or XML Schema, InfoPath populates the Data Source task pane with fields (field: An element or attribute in the data source that can contain data. If the field is an element, it can contain attribute fields. Fields store the data that is entered into controls.) and groups (group: An element in the data source that can contain fields and other groups. Controls that contain other controls, such as repeating tables and sections, are bound to groups.) that map to XML elements (XML element: An XML structure that consists of a start tag, an end tag, and the information between the tags. Elements can have attributes and can contain other elements.) in the document or schema. The data source is locked. Depending on the document or schema, you might not be able to add new fields or groups to part or all of the data source, or to change certain aspects of existing fields and groups.

4. To make your template part compatible with InfoPath Forms Services, select the Enable browser-compatible features only check box.

5. Click OK.

A new template part opens in InfoPath.

6. Design your template part.

7. When you finish designing the template part, on the File menu, click Save.

What are Template Parts?


It’s a kind of reusable sections in Infopath forms.

A template part is a portion of a form template that can be saved for reuse in multiple form templates. A typical template part consists of controls and a data source (data source: The collection of fields and groups that define and store the data for an InfoPath form. Controls in the form are bound to the fields and groups in the data source.) and may also include features such as data connections (data connection: The connection between an InfoPath form and an external data source, such as a database, Web service, SharePoint library, or XML file. Data connections are used to query and submit data.), data validation (data validation: The process of testing the accuracy of data; a set of rules you can apply to a control to specify the type and range of data that users can enter.), and rules (rule: A condition or action, or a set of conditions or actions, that automatically performs tasks based on events and values in the form.).
By creating and using template parts, you can help ensure that the form templates in your organization are consistent in tone, structure, and behavior. For example, a human resources department might use a single "Contact Information" template part in all of its form templates.

The file extension for template part is .xtp.

To design a template part, you must select the Template Part option instead of the Form Template option in the Design a Form Template task pane. When you open a template part, a (Template Part Design) prefix appears in the InfoPath title bar, indicating that you are in the correct mode for designing a template part.

Unlike a form template, you don't publish a template part when you finish designing it. Instead, you save it as a template part (.xtp) file. Then you can make your .xtp file available to other form designers who will need to use it. For example, you can copy the .xtp file to a file server on your organization's network and then send an e-mail message to form designers that describes the purpose of the template part, where it is located, and how they can add it to the Controls task pane in InfoPath.

When a form designer inserts a template part on a form template, it becomes part of the form template, and a form designer can customize it, if necessary.

Note There is no way to prevent form designers from changing a template part after they insert it on a form template. If you don't want others to customize the template part, you should make that clear when you distribute it.

To insert your template part on an InfoPath form template, form designers must first add the template part to the Controls task pane by using the Add Custom Control Wizard. After they complete the wizard, the template part appears in the Controls task pane, under the Custom heading.

To modify a template part, you open it in InfoPath design mode, make the changes that you need, and then resave the template part. You must then send the updated template part to any form designers who used the original version of the template part. Form designers can use the Add Custom Control Wizard to add the updated version of the template part to the Controls task pane. After they do this, they can open each affected form template and have InfoPath replace the original template part with the newer version.

Note If your organization creates a large number of template parts, you can build a repository of template parts that can be accessed from a common location on a company network, such as a shared folder, a Web server, or a form library located on a Microsoft Windows SharePoint Services site. It is possible to configure the InfoPath settings in the registry so that template parts appear automatically in the Controls task pane for users who have InfoPath installed. To make this happen, you may need to work with your information technology (IT) department, or with someone who is responsible for administering InfoPath in your organization. For more information about this topic, see the InfoPath documentation on Microsoft TechNet. TechNet is the resource that IT professionals use to successfully plan, deploy, manage, and support Microsoft products.

What is Logic Inspector?


It’s a tool in the Infopath 2007 that shows all of the code dependencies for the form in a single dialog.Depending on how you access the Logic Inspector, you initially see either the overview pane or both the overview pane and details pane.

What are the main components of Infopath Form Services that are responsible for rendering the .xsn file on the Browsers?



The Infopath form services consists of four components that are responsible for rendering the .xsn file on the browsers:

1. ASP.NET modules :Return HTML to the browser.

2. Infopath form services HTTPHandlers:Forward requests from IIS to the Page generator.

3. Converter: Responsible for converting the .xsn file into .aspx pages.

4. Page generator:Communicates with internal data sources and is responsible for processing postback data from the browser and maintaining session states.

What Is the .XSD file in Infopath?

It is the form schema file of infopath.


It determines the format of data that Infopath recognizes.