Archive for the ‘InfoPath’ Category

InfoPath SharePoint Development

Posted on August 17th, 2010 by Master-SharePoint  |  Comments Off

SharePoint News & Development Resources
DevSharePoint.com provides the latest SharePoint news and resources. Stay up to date with SharePoint 2010, MOSS 2007, WSS, SharePoint Designer (2007/2010), InfoPath.

InfoPath & SharePoint Development Tutorials, Resources & How To’s
InfoPathSharePoint.net provides the latest InfoPath development tutorials, InfoPath Form Services administration tips, tricks and how to’s. InfoPath SharePoint Integration: Integrate InfoPath Forms with SharePoint lists, libraries & workflow.

SharePoint & InfoPath News & Resources
SharePoint Administration, Development, Design & Customization Resources from around the internet. SharePoint & InfoPath News. InfoPath SharePoint Integration. InfoPath Form Template Design. InfoPath Form layouts, design tips & techniques.

InfoPath Error Opening Form Template in Design Mode

Posted on April 13th, 2010 by Master-SharePoint  |  Comments Off

 
I came accross an error in one of my infoPath form templates.  I was working on a template and able to save and publish to the form to SharePoint.  A blank from can be opened and submitted using the published template in Sharepoint, but if I try to edit (design) the template, the following error occurrs when InfoPath is attempting to open the form:
 
InfoPath has encountered an error.  The operation failed.
 
There are a number of possible causes for this and similar (parameter) errors, but in this case the error was caused when I removed dome empty group elements from the form’s main data source.  The groups were no longer being used on the template and did not contain any fields so I would have assumed that thay could be removed without issues.  I was able to narrow down the cause by retracing my steps using previous (working) versions of the form template.
 

SharePoint InfoPath Forms

Posted on March 2nd, 2010 by Master-SharePoint  |  2 Comments »

SharePoint InfoPath Forms

InfoPath forms can be a powerful tool for collecting organising, processing and submitting data of various types. Data Connections allow an infoPath Form to pull data from multiple data sources, including sharePoint. SharePoint InfoPath Forms can provide a rich interface and additional functionality when manipulating data in SharePoint lists and libraries than when using OOB browser forms.

When using InfoPath to open and complete forms, complex priocessing can be performed without impacting on performance of the SharePoint server as the procing is done by the client. Using SharePoint InfoPath Forms as an Interface to control workflow can provide greater functionality and control over the workflow process. Using an infoPath form to submit data to SharePoint lists can allows data from multiple lists to be updated once processed.

SharePoint InfoPath Forms

InfoPath SharePoint Integration

Posted on February 13th, 2010 by Master-SharePoint  |  Comments Off

InfoPath SharePoint Integration

InfoPath – Update Existing SharePoint List Item Programmatically Using CAML

This article demonstrates how to set up secondary data connections in an InfoPath form to connect to the Lists web service to update an existing item in a SharePoint list. An XML document containing a Collaborative Application Markup Language (CAML) query is sent containing data which will map to specific fields in the specified SharePoint list.

Integrate InfoPath Form with SharePoint Workflow

How to integrate InfoPath forms with workflow in SharePoint to give greater control over the functionality and user interface.

When an InfoPath form is set up to submit to a SharePoint library, fields in the form can be mapped to columns/fields in the SharePoint library, or a content type which is associated with a document library. See Submit InfoPath form to SharePoint List or Library using Content Type for details and an example of how to submit an InfoPath form to a SharePoint document library.

InfoPath – CAML Date Time format in when submitting to a SharePoint list via a Web Service

I noticed that when trying to update a SharePoint list item using a CAML query from an InfoPath form, if the date/time format was not correct the field in the SharePoint list item would not be updated. Any updates in the CAML query after an element with an invalid date/time format were also not applied.

Using Secondary InfoPath Data Connections to retrieve data from a SharePoint List or Library

The following demonstrates how to use InfoPath data connections to connect to and retrieve SharePoint list contents (item metadata) for use in the form. This can be useful when InfoPath forms are used as a workflow component or interface, or if the form is being submitted to a library on a SharePoint site.


InfoPath SharePoint Integration:

http://blog-sharepoint.blogspot.com/

Tutorials, tips and techniques for integrating InfoPath forms with SharePoint

Submit InfoPath form to SharePoint List or Library using Content Type

The following article demonstrates how to integrate an InfoPath form with a SharePoint form library, using a centralised template stored in a SharePoint document library and linked to a site Content Type. The form is set up to submit to a SharePoint form library

InfoPath SharePoint Integration

InfoPath Programming

Posted on February 10th, 2010 by Master-SharePoint  |  Comments Off

InfoPath Programming

InfoPath – Programming Tips – InfoPath Form Development

When should code be used in an InfoPath form and when should it be avoided?

There is no simple answer to this question, as it comes down to a matter of personal preference. This article is aimed at reducing the development time for InfoPath forms of various scales. The following are some tips to help you make the right decision…

Code is Reusable
InfoPath form code can be written to allow reuse in multiple forms which may have completely different requirements for functionality and layout. Developing to enable code reuse will prove to be a significant benefit to any developer. Having access to code that you know that works as well as an intimate understanding of how it works will save a many hours of development, as well as providing building blocks for further development…
Choose an appropriate language to become most familure with
Many languages are supported when using InfoPath forms (JScript, VBScript, C#, VB), sometimes making it harder to find relevant information or resources when troubleshooting and learning….
No need to over do it!
After saying all this, I should stress a few key points…
InfoPath Programming:
InfoPath Forms

Replicate / Migrate data into sharepoint lists from an external sql database

Posted on February 2nd, 2010 by Master-SharePoint  |  Comments Off

Forum Discussion:

Replicate / Migrate data into sharepoint lists from an external sql database

Solutions for integrating data from an external SQL database in SharePoint. Migrate data from an external database into Sharepoint Lists and libraries, or configure data connections to retreive data directly from the external database to be displayed on pages or stored in SharePoint.

Replicate / Migrate data into sharepoint lists from an external sql database

InfoPath data connection not returning all results

Posted on January 25th, 2010 by Master-SharePoint  |  Comments Off

In an InfoPath Form, I had a Data Connection to a SharePoint list which has almost 500 items.

When I open or preview the form, only 100 items are being returned from the SharePoint list using the Secondary Data Source of the SharePoint data connection.

InfoPath loads items from SharePoint which appear in the default view of the specified list or library. By default, SharePoint limits the total results of a view to 100, which can be changed by modifying the default view.

See InfoPath data connection not returning all results from a SharePoint list for details.

Integrate InfoPath Form with SharePoint Workflow

Posted on January 25th, 2010 by Master-SharePoint  |  Comments Off

How to integrate InfoPath forms with workflow in SharePoint to give greater control over the functionality and user interface.

Use an InfoPath form as the interface for a workflow in SharePoint to allow greater control over the user interface and functionality. Code can be used in the form which is processed by the client if completing a form using Microsoft InfoPath, or in a browser based InfoPath form supplied using SharePoint Forms Server. This reduces processing requirements of the SharePoint server(s), as well as allowing processing using code without worrying about code blocks in SharePoint.

Integrate InfoPath Form with SharePoint Workflow

InfoPath – Update Existing SharePoint List Item Programmatically Using CAML

Posted on January 25th, 2010 by Master-SharePoint  |  Comments Off

Create secondary data connections in an InfoPath form to retrieve the CAML template from an XML file, then submit using a second data connection to the Lists web service on the SharePoint site containing the list being updated.  The CAML template uses the UpdateListItem function from the web service to update an existing item in a SharePoint list.

This article demonstrates how to programmatically update a SharePoint list item from an InfoPath form using a CAML query to the Lists web service of the SharePoint site. The example uses secondary data connections to retrieve the CAML template from an XML file and another to submit the CAML template to a SharePoint web service using the UpdateListItem function.

The process is broken down into the following components, which are explained in detail in the article linked above.

1. Create Initial InfoPath Form
2. Set up the CAML query
3. Set up InfoPath Data Connections
4. Set up the Form Template and Required Code

Optional Steps and additional information:
- Update Repeating Field elements in the CAML Template Programmatically
- How to Submit using a Secondary Data Connection in InfoPath

Update Existing SharePoint List Item

InfoPath – Update Repeating Elements/Nodes in a Secondary Data Source

Posted on January 25th, 2010 by Master-SharePoint  |  Comments Off

Programmatically loop through each node in an xml data source to find a specific element/node by the attribute value.  This may be required to populate a CAML template before submitting to SharePoint via a web service.  Post comments discuss a scenario where the function provided in the article can be used.

See also InfoPath Code – Loop through items in a secondary data source from a SharePoint List for the details of a solution which implements the function provided in the article, as well as a modified version.