Pages

Showing posts with label InfoPath 2010. Show all posts
Showing posts with label InfoPath 2010. Show all posts

Tuesday, May 15, 2012

InfoPath patterns

We designed a declaration form for one of our customers. They only wanted their users to use the following pattern for entering the value of their declaration:

24.12

So no use of a comma. They wanted an error to appear if a user entered a comma. I used the validation rule  in combination with custom patterns.

I configured the following custom patterns:

00,00
\d?\d,\d\d

00,0
\d?\d,\d

00,000
\d?\d,\d\d\d

A pretty cool feature :-)

Friday, May 4, 2012

SharePoint 2010 - How to change a workflow task form with InfoPath

Introduction
In one of my previous articles I described how you can change the e-mail messages sent during workflow activities. I mentioned that it is also possible to change the look and feel of the workflow task form:



In this article I will explain how easy it is to create your own custom task form Smile

Wednesday, April 25, 2012

InfoPath Event-ID 5566

At one of our customers we created an InfoPath form in combination with the UserProfileService. We kept getting the following error:


Er is een fout opgetreden tijdens een poging om verbinding te maken met een webservice.
Het foutbericht is toegevoegd aan het Windows-gebeurtenislogboek van de server.
Logboek-id:5566

Correlatie-id:25ab7817-463d-4ce1-82d3-909327c6206c


Friday, January 27, 2012

InfoPath GetUserProfileByName and SharePoint Online

In my last InfoPath article I talked about using SharePoint web services. You can use for example the GetUserProfileByName web service to extract user information. I only did not get it to work in SharePoint Online 2010 so I created a service request with Microsoft. They looked into this and I received the following answer:


"I would like to update you that currently the data connection for the user profile is not supported in Sharepoint Online."


This is such a shame because it is such a powerful feature! I really hope this will be fixed in a future release because I think it is an essential feature in working with InfoPath and SharePoint.

Tuesday, January 10, 2012

InfoPath - What can it do for you - part 7

In this part of my InfoPath series I want to show you how you can use the SharePoint web services. The most interesting one is the GetUserProfileByName. This web service makes it possible to extract profile information, such as name or manager, from the SharePoint user profile. The form can automatically fill certain fields with these values. This saves the user a lot of time filling the form.


I want to continue with the hardware request form from the previous article. This form contains the fields Name, E-mail and Manager. These fields need to be automatically filled when the user opens the form. We can use the web service by adding a new data connection. Click at Data, From Web Service and SOAP. Now we only have to add the following URL:


http://siteurl/_vti_bin/UserProfileService.asmx?WSDL

Sunday, January 1, 2012

InfoPath - What can it do for you - part 6


In this article, of my InfoPath series, I want to show you how easy it is to create and design SharePoint lists from InfoPath.

InfoPath can be used to implement the look and feel of a company within lists and forms. It is possible to change the design of an existing SharePoint lists with InfoPath. You can change the standard look and feel by using the Customize form option in the ribbon. Why do this afterwards while you can perform all these actions within InfoPath! I am going to explain this process from a fictional case from our beloved company Contoso.

Wednesday, December 14, 2011

SharePoint 2010 and Nintex - How to create a temporary collaboration workspace - part 2

In the first article of this series I showed you our internal collaboration workspace. I hope you liked it and are interested in the configuration part :-)

The apply for a site list

Let's start by creating a new custom list with the following columns:

Column name
Type
Extra config.
Required
Site name
Single line of text

Yes
Description
Single line of text

Yes
Top site
Single line of text
Default view:
URL of the collaboration home site
No
Owners
People/Groups
People only
Allow multiple selections
Yes
Members
People/Groups
People only
Allow multiple selections
No
Visitors
People/Groups
People only
Allow multiple selections
No


Monday, December 12, 2011

InfoPath - What can it do for you - part 5


I want to start with admitting that I wrote this article before on this blog. I renamed it but the content is the same. The reason for this is that it fits perfectly in my 'What can InfoPath do for you' series. This article fits perfect in one of the newest advantages:

Retrieving information from SharePoint lists

One of the coolest new features of InfoPath 2010 is the integration with SharePoint lists. In this article I want to show you how you can use data from a SharePoint list within your InfoPath form.

I created a customer list in SharePoint:



Friday, December 9, 2011

InfoPath - What can it do for you - part 4

The previous version of SharePoint Online did not support InfoPath Form Services. This was really unfortunate because we were not able to create digital forms and publish these in SharePoint. The custom solution options were also limited to not existing (no sandbox solutions) so we had to use standard SharePoint lists.

Since the release of Office 365 we can finally use InfoPath in combination with SharePoint Online! This is fantastic news. We are now able to create cool digital forms and implement these in our online SharePoint portal!

In one of my future articles I am going to discuss the integration of InfoPath and SharePoint webservices. This integration should also be possible with SharePoint Online 2010 but I kept having issues and did not get it to work. I talked with the Microsoft Servicedesk about this problem and they told me this has to be done with BCS. I find this strange because I had a short talk with Laura Rogers and she said not having any problems at all! This asks for an investigation :)

So are you using SharePoint Online 2010? Use InfoPath! You can support your business processes in your SharePoint Online Portal. This has a lot of advantages. Keep reading my articles :-)

Tuesday, December 6, 2011

InfoPath - What can it do for you - part 3

In this article I want to show you how easy it is to republish your InfoPath form to SharePoint. The previous version of InfoPath made it really frustrating to republish forms. You had to go through the same steps as the first time you published the form. This was pretty time consuming!

I first want to go through the publishing process. This is pretty much the same as in InfoPath 2007. To publish the form for the first time you have to go to the File tab of InfoPath:


You have to click at Publish and choose for SharePoint Server. You have to enter the URL of the SharePoint site where you want to publish the form. You probably have to enter your credentials. The following screen will appear:



In this article I will select the first option, Form Library, but in future articles I want to talk about the other options. You have to click at Next. At the following option menu, you can choose to create a new form library or use an existing one. The second to last option menu give you the option to promote InfoPath fields as SharePoint columns. This is a pretty powerful feature but I will leave this for now (this is for future articles). You can now publish your form!

The above steps result in a new form library with the InfoPath form. The form can be opened and saved to the form library. I advise using the InfoPath Webpart as discussed in the previous article.

In most cases you will make changes to your form. I mentioned that in the previous version of InfoPath you had to go through all the publishing steps. These times are behind us. You can see the following options in the ribbon of InfoPath:


You only have to click at the icon next to the Save button to republish your form! This works really well and will save you a lot of time! 

Saturday, November 26, 2011

InfoPath - What can it do for you - part 2

In this part of the series I want to talk about one of the new features of InfoPath 2010 and SharePoint 2010:

The InfoPath webpart


















Friday, November 25, 2011

InfoPath - What can it do for you - part 1

The most recent version of InfoPath, InfoPath 2010, has been released a while ago. I only have the feeling that a lot of people and companies don't know (or realize) the true power of InfoPath. 

I want to talk about the advantages in seven articles. The following advantages (in random order) will be discussed:

1. The simplicity of publishing forms
2. Retrieving information from SharePoint lists
3. Creating SharePoint lists
4. Integration with webservices
5. Rules and formatting
6. InfoPath webpart
7. SharePoint Online 2010

So keep an eye out for the upcoming articles. The first one will be released soon :)

Monday, August 1, 2011

Speaking at Wortell TechReady

I am going to be one of the speakers at Dutch Technology event! It is organized by my employer Wortell. You can find information here:

http://blog.wortell.nl/category/techready2/

My sessions is going to be about digital forms and workflow. I will talk about the use of InfoPath 2010 and Nintex Workflow 2010. I am pretty nervous and excited for this! It is going to be a big event and I have never spoken before so many people :)

Exciting times!

Wednesday, June 29, 2011

InfoPath E-card solution

Introduction
A client of ours clients, a hospital, asked us to create an e-card form. This e-card can be filled in by a visitor of the Internet site, who wants to send a get better card to one of the patients of the hospital. It is a pretty straightforward InfoPath form. The visitor needs to be able to choose a card, leave personal and patient details and of course the message for the patient. The form needs to be submitted by e-mail to an employee of the hospital. I will show you the form and then I will describe how I created the form.

This is the first part of the form:



The visitor can choose a card (you understand these are dummy pictures ;-)), fill in personal and patient details and leave a personal message. The visitor needs to click on the Next button and the following view will be shown:



This is a bigger version of the picture and the personal message is shown again. If the visitor is satisfied the card will be send to the hospital by clicking on Send card. I will now try to explain the main part of the configuration for this form. I really hope that people will send me feedback if there is a better solution J


I add the pictures by just using the ribbon. Click on Insert, and Picture. Select a picture and it is added to the form. The picture will probably be really big, so just resize it manually. Now, add an Option Button control. For my form I only need two. You now have your step 1 section:



The user can now select one of the two pictures.

Section 2: Personal and patient details
This is pretty easy. Just add a table for the labels and controls. Go to Insert and Custom Table. Create four rows and two columns. Create your labels and use the Text Box control for the controls. Don´t forget to give all controls names that describe the function of the controls. For example: EcardPatientFirstName. This is important in case other users need to reconfigure the form. Does a control need to be mandatory? Check the box Cannot be blank option under Control tools and Properties (Select the control to get this ribbon action).

You now have your step 2 section:



Section 3: Personal message
The last section is also pretty easy. Just add a Text Box control and make it bigger by stretching it. Don't forget the check the Multi Line option. Otherwise the text typed in the text box will not start at the top left of the control. Go to the Text Box Properties, Display and check Multi-line:



The last part of the section is the button. Go to the control section and add a button. We now need to add a rule to the button so when a visitor clicks the button a new view is opened. The reason I created a new view with the selected picture and message is that the hospital wants to print the e-card with the message. So let's create a new view. Go to Page Design and click on New View. I named the view Email View. We will fill the view soon.

So, now we want to add a rule to the button. Double click the button and in the ribbon you should see the Rules section. Click Add Rule, When This Button is Clicked and Switch Views. Select the new view we created. Rename the label of the button to Next.

You now have your step 3 section:



The Email View
Make sure the lay-out of the view is the same as the first one. I often copy the whole form from the first view and paste in the second view. Delete the labels, controls and tables you don't need. I now want to make sure that only the picture, the visitor selected, is shown in the Email view. Add two sections under each other. Add the original picture to each of the sections:



We need to add a rule to each section to make sure the selected pictured is shown and will be emailed to the hospital. To do this we need to know what value a selected picture gets from the first view. Go to the first view and go to the Control Properties:



You can see that if this button is selected the value is 8. We need to use this for the rule in the Email View. So, go back to the Email View and select the section and click on Manage Rules. You can now add rules. Create a new formatting rule with the following condition:

"OptionButton is not equal to 8"

OptionButton is the name of the control. Select under Formatting Hide this control. So if the option button under this picture is not selected the picture will be invisible in the EmailView. Perform the same action for the other section with the corresponding value.

Reuse the personal message control and add new button. This button needs to send the E-card to the hospital. We need to create a Data Connection to e-mail the form. Go to Data and select To E-mail:



Configure the e-mail address the E-card need to be sent to. You can also add a subject. Now, click Next:



Choose the first option so the E-card will be shown in the e-mail instead of an attachment. The last thing we need to do is add this submit action to the button. Double click the button and rename it to Send card! and choose the e-mail submit we just created.

You now have your new Email View! Publish the form to SharePoint and show it in the InfoPath webpart and you are ready to go J

InfoPath 2010 Solution Part 2.

Hi, in my previous post I described how to setup a simple declaration form. The form only contained a standard look and feel and can use some adjustments. In this blog post I want to show you how easy that is.

Themes

InfoPath 2010 comes with a great set of out-of-the-box themes for your form. Use the ribbon to go to 'Page Design'. You can see the themes here:



InfoPath 2010 Solution Part 1.

Introduction

Today I would like to talk about an InfoPath 2010 solution I created for one of our customers. If you are not familiar with InfoPath 2010 read the following explanation. InfoPath 2010 is an application included in the Office 2010 suite. It is mainly used to create online forms for SharePoint 2010 portals. This has the following advantages:
  • Reducing the paper trail;
  • Users can fill the form in the browser;
  • The form can be saved to a SharePoint form library or send by e-mail;
  • Controls in the form can be connected to Active Directory, My Site and SharePoint;
  • Rules can be used to create a complex and flexible form;
  • Saved forms can be connected to SharePoint workflows.