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¶m2a=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