<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Next button and view name</title><link>https://www.infopathdev.com:443/forums/thread/29580.aspx</link><pubDate>Sat, 21 Jun 2008 05:33:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29580</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29580.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29580</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. You are correct.&lt;/p&gt;
&lt;p&gt;2. You are correct.&lt;/p&gt;
&lt;p&gt;3. Use the same code with minor changes for the control in the second view.&lt;/p&gt;
&lt;p&gt;string nextview=thisXDocument.ViewInfos[0].Name;&lt;br /&gt;thisXDocument.View.SwitchView(nextview);&lt;br /&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field1&amp;quot;).text=thisXDocument.View.Name;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Next button and view name</title><link>https://www.infopathdev.com:443/forums/thread/29557.aspx</link><pubDate>Fri, 20 Jun 2008 22:13:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29557</guid><dc:creator>bryanfox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29557</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hello Abhishek&lt;/strong&gt;,&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;I think this message of yours may speak to our issue/plan.&amp;nbsp;&amp;nbsp; We have a form that is destined to have 2 views (we&amp;#39;ll call them &amp;quot;View A&amp;quot; and &amp;quot;View B&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;quot;&lt;b&gt;View A&lt;/b&gt;&amp;quot; is a full view of a form that has several items (Drop-Downs, Fill-in boxes, and so on). &lt;b&gt;&lt;br /&gt;&amp;quot;View B&amp;quot;&lt;/b&gt; is a detail blow-up of one of the items, which is an extensive Multiple Select &lt;/p&gt;

&lt;p&gt;When the user clicks on a control located at this item, the view should change from A to B.&amp;nbsp; After the user makes his selections in &amp;quot;View B,&amp;quot; they will &amp;quot;save&amp;quot; their
selections by hitting another control which switches back to View A. &lt;/p&gt;

&lt;font color="blue"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="blue"&gt;&lt;i&gt;1.&amp;nbsp; Am I correct that the first control is what you have termed the button called &amp;quot;Change View&amp;quot;?&lt;/i&gt;&lt;br /&gt;&lt;i&gt;2.&amp;nbsp; Am I correct that this initial control would have an onclick event of &amp;quot;Change View&amp;quot; button in  View A, with the following code.&lt;/i&gt;&lt;/font&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;string nextview=thisXDocument.ViewInfos[1].Name;&lt;br /&gt;thisXDocument.View.SwitchView(nextview);&lt;br /&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field2&amp;quot;).text=thisXDocument.View.Name;&lt;br /&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;i&gt;&lt;font color="blue"&gt;3.&amp;nbsp; What do I do for the Control to switch back to A?&lt;/font&gt; (from the user perspective, they would be saving their selections for the this item before moving to the next)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Next button and view name</title><link>https://www.infopathdev.com:443/forums/thread/14832.aspx</link><pubDate>Wed, 18 Oct 2006 19:42:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14832</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14832</wfw:commentRss><description>Hi Abhishek,&lt;br /&gt;all right with your infos.&lt;br /&gt;Thank you.&lt;br /&gt;Raoul</description></item><item><title>Re: Next button and view name</title><link>https://www.infopathdev.com:443/forums/thread/14831.aspx</link><pubDate>Fri, 13 Oct 2006 09:48:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14831</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14831</wfw:commentRss><description>Hi Raoul,&lt;br /&gt;Have 2 views namely "View A" and "View B".&lt;br /&gt;&lt;br /&gt;In the "View A" keep a button called "Change View".&lt;br /&gt;&lt;br /&gt;In "View B" keep a textbox whose underlying field is "field2".&lt;br /&gt;&lt;br /&gt;Now in the onclick event of "Change View" button in  View A, write the following code.&lt;br /&gt;&lt;br /&gt;string nextview=thisXDocument.ViewInfos[1].Name;&lt;br /&gt;thisXDocument.View.SwitchView(nextview);&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:field2").text=thisXDocument.View.Name;&lt;br /&gt;&lt;br /&gt;So in ur case replace ViewInfos[1] by ViewInfos&lt;i&gt; and increment/decrement "i" based on ur needs.&lt;br /&gt;Maintain "i" globally.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Next button and view name</title><link>https://www.infopathdev.com:443/forums/thread/12962.aspx</link><pubDate>Thu, 12 Oct 2006 07:54:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12962</guid><dc:creator>Raoul</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12962</wfw:commentRss><description>Hi all,&lt;br /&gt;I have an Infopath module with 20 views. On any view, I need to create a button for open of next sequential view (not by view name, but by view order). Also I need a text field, one for single view, that automatically contain view name.&lt;br /&gt;Can I do that?&lt;br /&gt;Thanks in advance.&lt;br /&gt;Raoul</description></item></channel></rss>