<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44446.aspx</link><pubDate>Thu, 16 Jul 2009 09:12:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44446</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44446</wfw:commentRss><description>&lt;p&gt;Well, Full Trust is a bad practice because it increases cost to your users - you either have to sign the form and the users have to accept a digital certificate for it (or server admin has to configure Certificate Authority), or you need to create a local install of your form. Both ways are extra cost. Like Hilary said you shouldn&amp;#39;t have to do this. Uninstall .NET 3.5 if you can and try that.&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44428.aspx</link><pubDate>Thu, 16 Jul 2009 01:36:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44428</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44428</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m also running .net 3.5. That&amp;#39;s actually the thread I ran across and turned on full trust. I&amp;#39;m guessing this will be a problem when I deploy this form onto another server?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44391.aspx</link><pubDate>Wed, 15 Jul 2009 17:47:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44391</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44391</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Once I saw the form was getting populated I put back in my old code to get the parameter, but it was still filling the form with &amp;quot;test&amp;quot; text. So I found how to clear the infopath cache with the command line: infopath.exe /cache clearall&lt;/p&gt;&lt;p&gt;Then I tried the command line pass parameter again, and it worked!&lt;/p&gt;&lt;p&gt;Looks like I was cached the old form over and over again?&amp;nbsp;&lt;/p&gt;&lt;p&gt;I think I am good to go. Just need to play with it, and add additional parameters to pass!&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks so much for the assistance! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44390.aspx</link><pubDate>Wed, 15 Jul 2009 17:45:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44390</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44390</wfw:commentRss><description>&lt;p&gt;Just so you know, you shouldn&amp;#39;t have to be at full trust to run this code. &lt;a href="http://www.infopathdev.com/forums/p/7535/27677.aspx"&gt;Here&amp;#39;s&lt;/a&gt; a thread with more info.&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44389.aspx</link><pubDate>Wed, 15 Jul 2009 17:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44389</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44389</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Figure out the error code. I had my form set at domain trust. I set it to Full Trust and the error went away. And the Form Field did get populated with the test text.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44388.aspx</link><pubDate>Wed, 15 Jul 2009 17:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44388</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44388</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;When I try that method I get this error below.&lt;/p&gt;&lt;p&gt;System.Security.SecurityException&lt;br /&gt;Request failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathChildIterator.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.ChildrenQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.ChildrenQuery.Advance()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression expression)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at bizform.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnLoad(DocReturnEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad(DocReturnEvent pEvent)&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44387.aspx</link><pubDate>Wed, 15 Jul 2009 17:07:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44387</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44387</wfw:commentRss><description>&lt;p&gt;You can give variable &amp;#39;biz&amp;#39; a temporary value and preview your form to be sure the value is being set by your code. So instead of:&lt;/p&gt;
&lt;p&gt;Dim biz As String = e.InputParameters(&amp;quot;biz&amp;quot;)&lt;br /&gt;&lt;br /&gt;You could say:&lt;/p&gt;
&lt;p&gt;Dim biz As String = &amp;quot;test&amp;quot;&lt;/p&gt;
&lt;p&gt;And preview your form. Does your field get populated?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44385.aspx</link><pubDate>Wed, 15 Jul 2009 17:03:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44385</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44385</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hilary thanks for the response.&lt;/p&gt;&lt;p&gt;I followed those steps and still when I use the command line to send the parameters to the form it comes back empty in the field.&amp;nbsp; Is there something directly on the field I need to do? I copied and pasted the XPath as you explained.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is my Entire Form Code:&lt;/p&gt;&lt;p&gt;Imports Microsoft.Office.InfoPath&lt;br /&gt;Imports System&lt;br /&gt;Imports System.Windows.Forms&lt;br /&gt;Imports System.Xml&lt;br /&gt;Imports System.Xml.XPath&lt;br /&gt;Imports mshtml&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Namespace bizform&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Class FormCode&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler EventManager.FormEvents.Loading, AddressOf FormEvents_Loading&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim biz As String = e.InputParameters(&amp;quot;biz&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim field As XPathNavigator = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:biz&amp;quot;, NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field.SetValue(biz)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Class&lt;br /&gt;End Namespace &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44383.aspx</link><pubDate>Wed, 15 Jul 2009 16:52:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44383</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44383</wfw:commentRss><description>&lt;p&gt;I forgot the namespace manager, so more like:&lt;/p&gt;
&lt;p&gt;Dim field As XPathNavigator = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;&lt;strong&gt;/my:myFields/my:biz&lt;/strong&gt;&amp;quot;, NamespaceManager)&lt;br /&gt;field.SetValue(biz)&lt;/p&gt;
&lt;p&gt;The stuff in bold needs to be the exact xpath to your field. If you right click the field in the data source task pane and select Copy XPath, it will be on your clipboard and you can just paste it in.&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44381.aspx</link><pubDate>Wed, 15 Jul 2009 15:34:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44381</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44381</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, I am wanting to set a form field&amp;#39;s value.&lt;/p&gt;&lt;p&gt;Do I just add this code below, my code? Just changing the &amp;quot;fieldIWantToFill&amp;quot; to my field name (biz)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44376.aspx</link><pubDate>Wed, 15 Jul 2009 15:14:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44376</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44376.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44376</wfw:commentRss><description>&lt;p&gt;Hi--&lt;/p&gt;
&lt;p&gt;It looks like you are passing in the input parameter....but not doing anything with it. Do you want to set a form field&amp;#39;s value to your string variable biz?&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;p&gt;Dim field As XPathNavigator = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:fieldIWantToFill&amp;quot;)&lt;br /&gt;field.SetValue(biz)&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44369.aspx</link><pubDate>Wed, 15 Jul 2009 08:52:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44369</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44369</wfw:commentRss><description>&lt;p&gt;Yes sir, I&amp;#39;ve been all over the different posts. I wonder if mine could be a debug issue.&lt;/p&gt;&lt;p&gt;I just created a brand new form with just 1 field in it called biz.&lt;/p&gt;&lt;p&gt;I added my vb code&lt;br /&gt; &lt;br /&gt;Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim biz As String = e.InputParameters(&amp;quot;biz&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt; then run from command line:&lt;/p&gt;&lt;p&gt; infopath.exe &amp;quot;c:\biz.xsn&amp;quot; /InputParameters &amp;quot;biz=web&amp;quot;&lt;/p&gt;&lt;p&gt;And my form still shows up blank. I&amp;#39;m really lost. :(&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44361.aspx</link><pubDate>Wed, 15 Jul 2009 06:26:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44361</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44361.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44361</wfw:commentRss><description>&lt;p&gt;Hi MSanders79 and welcome!&lt;/p&gt;
&lt;p&gt;We have at least 3 blogs on this and there are probably 10 threads. Have you tried searching? If you don&amp;#39;t find something, send me e-mail. There&amp;#39;s tons of stuff here and on the &lt;a href="http://blogs.msdn.com/infopath"&gt;http://blogs.msdn.com/infopath&lt;/a&gt; site. Search is your friend.&lt;/p&gt;</description></item><item><title>Pass parameters into browser based infopath 2007 form</title><link>https://www.infopathdev.com:443/forums/thread/44337.aspx</link><pubDate>Tue, 14 Jul 2009 20:20:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44337</guid><dc:creator>msanders79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44337</wfw:commentRss><description>&lt;p&gt;Hello i have a browser enabled infopath 2007 form loaded on my Moss 2007 server. I am trying to pass a parameter to the form so when a user opens the form a field is automatically populated from the URL.&lt;/p&gt;&lt;p&gt;I used VB code&amp;nbsp; &amp;quot;Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim doctitleValue As String = e.InputParameters(&amp;quot;doctitle&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&amp;quot; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And my URL uses the parameter: &amp;quot;doctitle&amp;quot; &lt;/p&gt;&lt;p&gt;http://sharepoint/Site/_layouts/FormServer.aspx?XsnLocation=http://sharepoint/FormServerTemplates/MyForm3.xsn&amp;amp;OpenIn=browser&amp;amp;SaveLocation=http://sharepoint/Site/Forms&amp;amp;Source=http://sharepoint/Site/Forms/Forms/AllItems.aspx&amp;amp;doctitle=Myname &lt;/p&gt;&lt;p&gt;But when I open the form, there is nothing in the field. Any idea&amp;#39;s one what could be causing this to remain blank? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>