<?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: Input Parameters</title><link>https://www.infopathdev.com:443/forums/thread/58856.aspx</link><pubDate>Fri, 10 Sep 2010 14:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58856</guid><dc:creator>RSharepoint</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=58856</wfw:commentRss><description>&lt;p&gt;Hi ErnestoM&lt;/p&gt;
&lt;p&gt;Thank You very much for the response.But let me explain my scenario in a better way .I have a tab control created with 7 tabs ..each tab as each view and the tabs are nothing but buttons.Basically when I open my form from the search button, I open the&amp;nbsp;search tab or view and I want to hide all other tabs .And when I open the form&amp;nbsp;from the New butoon I am opening the same view with all Tabs(All Views) visible.&lt;/p&gt;
&lt;p&gt;As you said in both the scenario the fields are blank. what I did was created a input parameter in the form load:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;try&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; {&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; if (e.InputParameters.Keys.Contains(&amp;quot;sview&amp;quot;))&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; {&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; string s = e.InputParameters[&amp;quot;sview&amp;quot;].ToString();&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; MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:SwitchViews&amp;quot;, NamespaceManager).SetValue(s);&lt;/p&gt;
&lt;p&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; }&lt;/p&gt;
&lt;p&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; }&lt;/p&gt;
&lt;p&gt;catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; MessageBox.Show(ex.Message);&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; &lt;/p&gt;
&lt;p&gt;Then I have a SwitchViews boolean field created in the maindatasource which has false as default value.I have applied conditional formating on all the tabs/buttons..if switchviews = true then hide the tabs.And then trying to open the form with the parameter passed.I dont know if this is the right way to do it or am I missing something. Please advice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank You!!!&lt;/p&gt;</description></item><item><title>Re: Input Parameters</title><link>https://www.infopathdev.com:443/forums/thread/58849.aspx</link><pubDate>Fri, 10 Sep 2010 11:46:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58849</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=58849</wfw:commentRss><description>&lt;p&gt;If I understand the scenario correctly, you shouldn&amp;#39;t need to switch views nor use input parameters. You can do everything in one view, and just hide sections using conditional formatting. &lt;/p&gt;&lt;p&gt;Usually all forms have values that are set on the first submit, for example, SubmittedDate or Status. You could have sections that hide/show depending on whether a field has a value or is blank (because, for a new form, most fielda might be blank).&lt;/p&gt;&lt;p&gt;Does that make sense? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Input Parameters</title><link>https://www.infopathdev.com:443/forums/thread/58827.aspx</link><pubDate>Thu, 09 Sep 2010 15:16:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58827</guid><dc:creator>RSharepoint</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58827.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=58827</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I have a browser enabled infopath form template. I am opening the template from a content editor webpart&amp;nbsp;&amp;nbsp;in moss 2007. When opened from a new button , I want the form to be opened in the default view.When i open the same form from search button..I want to hide some controls on the same default view.I am trying to use input parameters but does&amp;#39;nt seem to work.Please Help!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>