State Management in Infopath Forms

I'm currently working on a project that involves the modernization of lotus notes application to SharePoint-InfoPath stack. We are facing a scenario where we need to pass data between the two InfoPath forms Form A and Form B.

I was wondering whether InfoPath supports any form of state management. After a bit of research. the following blog post says it's feasible

http://blogs.msdn.com/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx

 

The idea is to pass data as the Query String Parameter from Form A to Form B like the followinghttp://www.testsite.com/formb.xsn?param1a=1&param2a=2 In the code-beside of the Form B, we need to receive the parameters like the following. string bazValue = e.InputParameters["param1a"];string bizValue = e.InputParameters["param2a"];

 

Note:-

This works for browser InfoPath enabled 2007 forms too. VSTA (Visual Studio Tools for Application) needs to be used to wire the above logic inside the Form_Loaded event. I'm not sure whether this is the optimal way. If anyone has found a better way for InfoPath State management, please update me

Published Monday, June 23, 2008 11:15 AM by lavssun
Filed under:

Comments

# re: State Management in Infopath Forms

Wednesday, July 02, 2008 1:06 PM by Srividhya Gopalakrishnan

I am little bit confused with this. Once we publish the form template into sharepoint we can create any number of new forms.

Let me consider the above example itself. Once we publish the form templates (Form A & Form B) we can create new forms with new names. In that case how to pass data between two forms. How we can make it dynamically??

# re: State Management in Infopath Forms

Saturday, July 05, 2008 2:19 AM by lavssun

Srividhya Gopalakrishnan,

Yes i can understand that after publishing the form templates Form A and Form B, we can create any number of forms based on those templates.

Let me explain the scenario in detail where you would need the connection between two infopath forms (templates) dyamically.

We are currently modernizaing a lotus notes app into sharepoint-infopath stack. My source application (lotus notes) has a Main Form for data-entry. The Main form pops-up the child form to enable the Master-Detail relationship in Data Entry.

When i'm re-engineerign this UI in Infopath , i'd need a way to invoke Form B from Form A

dynamically by passing parameters.

This is the need for state managemetn in infopath forms

Hope this clarifies you

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Powered by Community Server (Commercial Edition), by Telligent Systems