<?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: SwitchView Problem</title><link>https://www.infopathdev.com:443/forums/thread/10022.aspx</link><pubDate>Wed, 26 Jul 2006 08:13:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10022</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10022.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10022</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;Here is a link which helps to Switch Views Programmatically in case anyone needs&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=b5613773df374e42a0dddc22acb21d8e&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=b5613773df374e42a0dddc22acb21d8e&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps</description></item><item><title>Re: SwitchView Problem</title><link>https://www.infopathdev.com:443/forums/thread/10021.aspx</link><pubDate>Wed, 26 Jul 2006 04:10:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10021</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10021.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10021</wfw:commentRss><description>You help me a lot&lt;br /&gt;Thank you</description></item><item><title>Re: SwitchView Problem</title><link>https://www.infopathdev.com:443/forums/thread/10020.aspx</link><pubDate>Wed, 19 Jul 2006 16:34:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10020</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10020.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10020</wfw:commentRss><description>I'm suprised it ever worked. The View object doesn't exist until the OnLoad event handler has completed.&lt;br /&gt;&lt;br /&gt;A better option is to use Open Rules (see Tools | Form Options).&lt;br /&gt;&lt;br /&gt;Or, within the OnLoad event handler, you can use something like:&lt;br /&gt;&lt;br /&gt;XDocument.ViewInfos("View B").IsDefault = true;</description></item><item><title>SwitchView Problem</title><link>https://www.infopathdev.com:443/forums/thread/5695.aspx</link><pubDate>Wed, 28 Jun 2006 13:04:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5695</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5695</wfw:commentRss><description>I have a form that contain 2 views "View A" (default view)&lt;br /&gt;and "View B".&lt;br /&gt;In my OnLaod event I have this code:&lt;br /&gt;&lt;br /&gt;if Application.User.IsUserMemberOf(USER_GROUP_B) then&lt;br /&gt;XDocument.View.SwitchView("View B")&lt;br /&gt;end if.&lt;br /&gt;&lt;br /&gt;When I run it from one machin It's work well. but I  try open the form on another machin and I get error of:&lt;br /&gt;&lt;br /&gt;    Object requierd: 'XDocument.View'&lt;br /&gt;&lt;br /&gt;What is the problem? (I installed the form on each machin)</description></item></channel></rss>