<?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: Opening a form based on a submitted view</title><link>https://www.infopathdev.com:443/forums/thread/91804.aspx</link><pubDate>Wed, 31 Jul 2013 14:20:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91804</guid><dc:creator>Sandy_Wood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91804.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91804</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks much Larry. I finally put together something similar to your solution. I added a hidden field to my submitted form called FormView and upon Submit I set that field to whatever view was being submitted. They I changed my Form Load rule to look at the FormView field value and then open the view I linked to it. My solution is a bit pedestrian, not as elegant as yours but it works for me. &lt;/p&gt;</description></item><item><title>Re: Opening a form based on a submitted view</title><link>https://www.infopathdev.com:443/forums/thread/91787.aspx</link><pubDate>Tue, 30 Jul 2013 19:08:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91787</guid><dc:creator>jaxkookie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91787.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91787</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I actually had the same requirement and this is how I solved for it. I was building a ticket form for 3 types of tickets. on initial load of the form I have a &amp;quot;Main&amp;quot; view (only loads once)&amp;nbsp;that allows the user to select the type of ticket. Now you can get this value from the URL if you want or how ever you are now, but you have to at least know this value of the view. When the user clicked one of three buttons I set a field &amp;quot;TicketType&amp;quot; to the view value. The is a hidden field and doesn&amp;#39;t change on my form, but most likely will on yours. So you just need either on save or some change event set the value of that field to your view name. OnForm load I run a little piece of code to set the default view which that value is pulled from the field &amp;quot;TicketType&amp;quot;, maybe yours is &amp;quot;ViewName&amp;quot;. So in the FormEvents_Loading I put this code. the value of my &amp;quot;TicketType&amp;quot; field is my default view&lt;/p&gt;


&lt;pre&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;
                // Create an XPathNavigator object for field - the field for switching the View
&lt;/font&gt;&lt;/font&gt;
&lt;font size="2"&gt;                &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPN&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; DefaultView = CreateNavigator().SelectSingleNode(&lt;font color="#800000"&gt;&amp;quot;xpath to field&amp;quot;&lt;/font&gt;, NamespaceManager);&lt;/font&gt;
&lt;font size="2"&gt;                &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Make sure that the XPathNavigator object is not null or an empty string&lt;/font&gt;&lt;/font&gt;
&lt;font size="2"&gt;                &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (DefaultView != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp;&amp;amp; DefaultView.Value != &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;
&lt;font size="2"&gt;
                {
                   e.SetDefaultView(DefaultView.Value);
                }
&lt;/font&gt;&lt;/pre&gt;
let me know if you have any questions</description></item><item><title>Opening a form based on a submitted view</title><link>https://www.infopathdev.com:443/forums/thread/91777.aspx</link><pubDate>Tue, 30 Jul 2013 15:21:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91777</guid><dc:creator>Sandy_Wood</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91777</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;ve got a form that has three different possible views that can be submitted to a single SharePoint 2010 form library. Once they are submitted, I haven&amp;#39;t found a way to open the submitted forms based on the views they were submitted with. I thought a Form Load Rule might do the trick by having the Submit button stamp the submitted form with a field after submission. That way, I thought A Form Load Rule could look for a specific value before opening.&lt;/p&gt;</description></item></channel></rss>