<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69933.aspx</link><pubDate>Thu, 01 Sep 2011 16:11:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69933</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69933</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s true that that approach is able to change the view without the use of a button, but the ContextChanged event (and resultingly, the view change) will not happen until the user tabs away from the dropdown or clicks another control.&amp;nbsp; You&amp;#39;re better off using a button than having the form exhibit that kind of strange behavior.&lt;/p&gt;</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69928.aspx</link><pubDate>Thu, 01 Sep 2011 15:40:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69928</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69928</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;just an additional note...you can switch view based on a combo box value...&lt;/p&gt;&lt;p&gt;Please look here for the way to accomplish this:&lt;/p&gt;&lt;p&gt;&lt;a href="http://basquang.wordpress.com/2009/06/15/infopath-drop-down-list-changed-switch-view/"&gt;http://basquang.wordpress.com/2009/06/15/infopath-drop-down-list-changed-switch-view/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69926.aspx</link><pubDate>Thu, 01 Sep 2011 15:25:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69926</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69926</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll need two data connections - show the results of one in one view and the results of the other in the other view. If that&amp;#39;s what you are trying to do? Just display some secondary data in each view?&lt;/p&gt;</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69925.aspx</link><pubDate>Thu, 01 Sep 2011 15:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69925</guid><dc:creator>troy23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69925</wfw:commentRss><description>Thanks Hilary - that seems to work.
The only issue is that one cannot seem to a different data connection for each view. 
My sharepoint has two document libraries and I wanted each view to go to the relevant one. 
I notice when I set a data connection on one view it is replicated on the other view and is not changeable.</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69921.aspx</link><pubDate>Thu, 01 Sep 2011 14:50:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69921</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69921</wfw:commentRss><description>&lt;p&gt;So you know - you aren&amp;#39;t submitting a view, but the form data. And the form is going to open with its default view unless you have rules in place to do otherwise. In your form loading rules you can set a rule to switch views - and have conditions to switch to the correct view based on your combo box value.&lt;/p&gt;</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69920.aspx</link><pubDate>Thu, 01 Sep 2011 14:17:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69920</guid><dc:creator>troy23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69920</wfw:commentRss><description>Thanks for the reply.
Yes I managed to do that. I use the combo to set a value in a text box (1,2) and then the button shows the view depending (via rule and condition) on the choice.

Another problem arises when I submit the view to Sharepoint - it seems to pick up the original view - one with the combo and not the view I am currently on.</description></item><item><title>Re: How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69919.aspx</link><pubDate>Thu, 01 Sep 2011 14:11:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69919</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69919</wfw:commentRss><description>&lt;p&gt;Even with code, you can&amp;#39;t switch views on a field Changed event.&amp;nbsp; Why not provide a button next to your dropdown to switch the view accordingly?&lt;/p&gt;</description></item><item><title>How can I switch views based on combo box value?</title><link>https://www.infopathdev.com:443/forums/thread/69917.aspx</link><pubDate>Thu, 01 Sep 2011 12:13:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69917</guid><dc:creator>troy23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69917</wfw:commentRss><description>I have a view with a combo box.
When a value is selected from that combo box I need a particular view to load.

so if value 1 then load view1
if value 2 then load view2
etc

I tried using rules, but switch view is not available for a combo box. 
I assume some code is needed.

Pls advise

Thanks</description></item></channel></rss>