A few examples of InfoPath 2007 Template Parts we created for the current project

by michaellotter 8/15/2007 9:44:00 AM

Since I've been talking about template parts quite a bit of late I wanted to show some examples of the most common ones that we created.  We are not talking about anything fancy but common ones that are used a lot.  With each example I'll give a little explanation on other things that have been done to the template parts that aren't visible from the pictures. 

All the blue examples were built by me and all the nice looking ones were built by our new designer.

As you can tell we took the heading piece from InfoPath layouts a little further and built something little more specific for our situation.  All fields in the template part are automatically pre-populated when a form is opened.  The date field is populated with the "Today" function but the other 3 fields are populated from a secondary data source.  The secondary data source is a web service that queries AD to retrieve the current user display name and company values.  The web service that's used has a parameter that wants current user login name and for this InfoPath "UserName" function is used.  The "Location" dropdown list values are retrieved from a SharePoint List but the active value is populated from the web service.

Things that were done part of the template part were Arial 12 formatting for all text and controls, specifying the data connections for the web service and SharePoint List and the binding of the dropdown list.  The actual queries and setting of values are done in the startup rules of the actual form.  Just the 3 tasks that this Form Template part does saves use a tremendous amount of time when you are talking about hundreds of forms.

When we started to look at the forms they wanted to convert we noticed that most of them had address blocks.  One of their requirements for the address blocks was having the capability of specifying and updating any values for states or provinces and countries or regions.  One nice thing we didn't have to worry about was data validation for any of the fields.  We ultimately decided to use SharePoint Lists for both the State/Province and Country/Region dropdown list fields.

Things that were done part of the template part were Arial 12 formatting for all text and controls, data binding of dropdown lists and specifying the data connections for State/Province and Country/Region.  Both of these dropdown lists values are pulled from SharePoint Lists because the SharePoint Lists gives the customer the flexibility to change the values whenever they want.  The actual queries happen in the startup rules of the actual form.

A couple of things that we didn't do that could have been done in this template part would have been data validation for the Zip/Postal Code and Phone fields but it wasn't necessary at this point.  If it does come necessary then all we have to do is update this template part and then import it back into the InfoPath Designer and re-open each form and then update the control.

The last example that I have to share at this moment is an approval template part.  We use this for allowing people to approve the content of the form instead of using Workflow Tasks.  It was decided to do it this way because then all the information would reside in the forms and not in different locations. 

Things that were done part of the template part were Arial 12 formatting for all text and controls, conditional formatting for the checkboxes, text wrapping settings for the multi-line textbox, conditional formatting and rules for the approve and reject button, and data connection that is used for submitting the form. 

You might be asking why we have an approval form template part and the reason is because the customer didn't want to use workflow tasks and wanted all the information stored in the XML.  The workflows that we use are very simple and usually only send emails to people to approve or reject forms and to the individual who submitted the form to advise them if the form was approved or rejected.

Well those are probably are most common template parts at this point and like I said before nothing fancy but just very common things that are used a lot.

Cheers

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

InfoPath 2007

Related posts

Comments

8/15/2007 6:59:13 PM

http://

Informative, thank you.

http://

9/20/2007 9:21:54 PM

http://


for your approval status..is it appear when user fill the form?how to hide the approval status section from the user when they fill the form??

thnx


http://

9/23/2007 9:57:38 PM


The Approval Status Section does not appear until a the Form Status is a certain value and assigned user opens the form. Conditional Formatting is used to hide the Section and Opening Rule is used to direct the user opening the form to the Read-Only view or real view with the displayed Approval Status Section. Hope this helps.

Cheers,
Michael


Michael Lotter

11/9/2007 1:57:00 PM

http://


Just so you know that in both Firefox and IE the text is being cutoff on the right hand side a little bit.
thanks

Ray


http://

3/1/2008 7:56:57 AM

http://

Looks great but I'm not able to find the download for this blog . tx -dave

http://

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

9/8/2008 12:06:01 AM

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  September 2008  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

View posts in large calendar

Recent comments

Tags

Don't show

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in