<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8663.aspx</link><pubDate>Wed, 04 Jan 2006 18:03:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8663</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8663</wfw:commentRss><description>Here is the process in more detail. I may be going about this the wrong way.&lt;br /&gt;&lt;br /&gt;What happens in the process is, a form gets filled out and the data is saved to a backend database. At a latter time another user needs to be shown a slightly different form with the same data for reviewing purposes. The second user can enter data in a few new fields, but the old data should be read only. Then another user gets shown the same data for review. The process keeps going for few more users, each one entering a field or two (Comments etc.), until the end where the data should reside in the database.&lt;br /&gt;&lt;br /&gt;The issue is multiple users can be filling out forms simultaneously, so the data has to be kept separate using a key that's stored in the Java App. So when the users are shown a form it needs to query the database with the key and display the data.&lt;br /&gt;&lt;br /&gt;Another issue is, the Java App can only pass URL to Internet Explorer, so I don't believe it will accept command line parameters with spaces (/aggregate etc). Is this correct? So I'm hoping to have the Java App write an XML file to the local machine storing the key. Then have the form read the XML file in the OnLoad event and do the query.&lt;br /&gt;&lt;br /&gt;First, does this sound like a good way to do it, or am I missing a better way? And second, can it be done within the OnLoad event?&lt;br /&gt;&lt;br /&gt;Sorry for the confusion. I should have been clearer in my first post.&lt;br /&gt;&lt;br /&gt;I appreciate the input so far.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8662.aspx</link><pubDate>Wed, 04 Jan 2006 16:44:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8662</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8662</wfw:commentRss><description>Anyone?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8661.aspx</link><pubDate>Tue, 03 Jan 2006 23:07:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8661</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8661</wfw:commentRss><description>Could someone help me out with the merge? I'm having a bit of trouble.&lt;br /&gt;&lt;br /&gt;Here's the command line:&lt;br /&gt;&amp;lt;pathtooffice&amp;gt;\INFOPATH.EXE /aggregate C:\Temp\Params.xml C:\Temp\TestForm2.xsn&lt;br /&gt;&lt;br /&gt;Params.xml Contains.&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;br /&gt;&amp;lt;Params&amp;gt;&lt;br /&gt;    &amp;lt;Param name="ID" value="Test2"/&amp;gt;&lt;br /&gt;&amp;lt;/Params&amp;gt;&lt;br /&gt;&lt;br /&gt;In this next function I never get to the Merge Alert:&lt;br /&gt;function XDocument::OnMergeRequest(eventObj)&lt;br /&gt;{&lt;br /&gt;    var dom = eventObj.DOM;&lt;br /&gt;&lt;br /&gt;    if (dom.selectNodes("/Params/Param").nextNode())&lt;br /&gt;    { &lt;br /&gt;&lt;br /&gt;XDocument.UI.Alert("Merge");&lt;br /&gt;&lt;br /&gt;        g_fArgumentsPassed = true;&lt;br /&gt;        g_argsDOM = dom;&lt;br /&gt;    }&lt;br /&gt;    eventObj.ReturnStatus = true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;What could I be doing wrong?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8660.aspx</link><pubDate>Tue, 03 Jan 2006 22:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8660</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8660</wfw:commentRss><description>I'm just trying to be cross-compatible. I can't guarantee they installed it in the default location. I'm trying to make this as simple as possible.&lt;br /&gt;&lt;br /&gt;Question though, can I just read an XML file from a specific location during the OnLoad event without going through the Form Merge process?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8659.aspx</link><pubDate>Tue, 03 Jan 2006 21:32:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8659</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8659</wfw:commentRss><description>Why don't you know where InfoPath is installed on Client's machines? Is it because you are trying to be as cross-compatible as possible?&lt;br /&gt;&lt;br /&gt;You could try using some system variables on the command prompt to find InfoPath, or you could add the user's install directory to the Path variable and you will have infopath.exe available everywhere.&lt;br /&gt;&lt;br /&gt;Reference on system variables:&lt;a target="_blank" href=http://www.wilsonmar.com/1envvars.htm&gt;http://www.wilsonmar.com/1envvars.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8658.aspx</link><pubDate>Tue, 03 Jan 2006 16:07:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8658</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8658</wfw:commentRss><description>Regarding the /aggregate switch. I'm sending IE only the form template name, i.e. XSN location\filename, because I don't know where InfoPath is installed on the clients machine. Any idea's on how I could overcome this?&lt;br /&gt;&lt;br /&gt;Thanks</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8657.aspx</link><pubDate>Tue, 03 Jan 2006 15:54:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8657</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8657.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8657</wfw:commentRss><description>Thanks for the reply.&lt;br /&gt;&lt;br /&gt;I'm a little new to InfoPath, so forgive the dumb questions. Im coming from a VB, C++ background.&lt;br /&gt;&lt;br /&gt;Does this example require the creation of an external XML file? Is there a way to pass the parameters directly?&lt;br /&gt;&lt;br /&gt;Here's the scenario in a little more detail.&lt;br /&gt;&lt;br /&gt;This whole process is happening within a multi-user Intranet environment. The form data is coming from a SQL DB and needs to be linked via a Key coming from the Java App. The key either needs to be passed directly via a parameter or saved somewhere on the local machine(not the ideal).&lt;br /&gt;&lt;br /&gt;Also, my form's "Merge Form" item is disabled even though I made changes to the Manifest file under importParameters. Can I just put code in the OnLoad event to read the XML file? I just need to pass one field in when the form loads.&lt;br /&gt;&lt;br /&gt;Any suggestions/examples would be great?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8656.aspx</link><pubDate>Tue, 03 Jan 2006 01:44:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8656</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8656</wfw:commentRss><description>Or you can use the "/aggregate" switch and a separate xmo file with the parameters. Search for "command line parameters aggregate".&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/8655.aspx</link><pubDate>Mon, 02 Jan 2006 20:50:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8655</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8655.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8655</wfw:commentRss><description>If you are passing in a customer parameter you will need to use a simple web page. Check out this tutorial:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=af9e48a6e43c41f4be62296a7fa0e494&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=af9e48a6e43c41f4be62296a7fa0e494&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Passing Parameters to InfoPath via Command Line</title><link>https://www.infopathdev.com:443/forums/thread/5234.aspx</link><pubDate>Mon, 02 Jan 2006 20:25:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5234</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5234</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I need to pass a number(key) to an InfoPath form when opening it via Internet Explorer. I'm opening the form from within a Java web application that sends the URL to IE. "\\server\formsfolder\form.xsn"&lt;br /&gt;&lt;br /&gt;I was wondering if there's a way to send the form a parameter directly in the URL link. If not, is there some other way to do it?&lt;br /&gt;&lt;br /&gt;Thanks in advance.</description></item></channel></rss>