<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: InfoPath 2007 - Determine which view to display</title><link>https://www.infopathdev.com:443/forums/thread/11560.aspx</link><pubDate>Wed, 09 Aug 2006 02:57:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11560</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11560</wfw:commentRss><description>I did find some information that looks like it will provide your info.&lt;br /&gt;&lt;br /&gt;This article describes how to do it in code but of course since it is accessing a web service you should be able to just setup a data connection in InfoPath to the same web service:&lt;br /&lt;a target="_blank" href=http://msd2d.com/Content/Tip_viewitem_03NoAuth.aspx?section=SharePoint&amp;id=82C7DFB3-0736-45C0-AEB8-F30614E477F4&gt;http://msd2d.com/Content/Tip_viewitem_03NoAuth.aspx?section=SharePoint&amp;id=82C7DFB3-0736-45C0-AEB8-F30614E477F4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is the MSDN documentation for the complete class library and more importantly the web services on SharePoint:&lt;br /&lt;a target="_blank" href=http://msdn2.microsoft.com/en-us/library/ms427466.aspx&gt;http://msdn2.microsoft.com/en-us/library/ms427466.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: InfoPath 2007 - Determine which view to display</title><link>https://www.infopathdev.com:443/forums/thread/11559.aspx</link><pubDate>Mon, 07 Aug 2006 13:48:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11559</guid><dc:creator>mikesm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11559</wfw:commentRss><description>Ok, I ended up getting this to work by created rules as the fomr opens.  My only problem now is that I cant seem to directly check to see if a person is a site admin.  For now I had to create an admin contact list in sharepoint and then when my form opens, I use a data connection to see if the username is in this contact group.  I would rather check to see if the user is a site admin so I dont have to maintain two lists of admins.&lt;br /&gt;How do you verify if the person accessing the form is a site admin?</description></item><item><title>Re: InfoPath 2007 - Determine which view to display</title><link>https://www.infopathdev.com:443/forums/thread/11558.aspx</link><pubDate>Mon, 24 Jul 2006 14:43:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11558</guid><dc:creator>mikesm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11558</wfw:commentRss><description>I need to be able to determine the view as the form is opened.  I please some custom code in the load event to do a ViewInfos.SwitchView("View 1");&lt;br /&gt;is the username on the machien equals the lanid on the form.  However, I received an error indicating that I could not use ViewInfos.SwitchView in the form load event.&lt;br /&gt;Not sure how to set this up to work now.</description></item><item><title>Re: InfoPath 2007 - Determine which view to display</title><link>https://www.infopathdev.com:443/forums/thread/11557.aspx</link><pubDate>Mon, 24 Jul 2006 13:34:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11557</guid><dc:creator>Kalyan Gaddam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11557</wfw:commentRss><description>Hello, &lt;br /&gt;&lt;br /&gt;Did you tried by keeping a Button in the View 1 and Switch views when the button is Clicked.&lt;br /&gt;You can keep conditions when to execute this action.&lt;br /&gt;&lt;br /&gt;Hope this helps you.</description></item><item><title>InfoPath 2007 - Determine which view to display</title><link>https://www.infopathdev.com:443/forums/thread/11483.aspx</link><pubDate>Mon, 24 Jul 2006 13:08:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11483</guid><dc:creator>mikesm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=11483</wfw:commentRss><description>I have an InfoPath 2007 form created and it is set up to be opened in a browser.   I have 3 levels of security that I need to apply:&lt;br /&gt;&lt;br /&gt;1) Admin - edit entire form&lt;br /&gt;2) Creator - edit form w/ excepton of admin section&lt;br /&gt;3) All Other - Only view form (admin section hidden)&lt;br /&gt;&lt;br /&gt;Since this form is browser enabled, I cannot set up User Roles and they are not usable in browser forms.  What I want to do is have 3 views, one for each level of security and then determine which view to display when the person opens the form from the SharePoint forms library.   I have the default view set up as the All other.   But not sure how to switch to the other 2 views.&lt;br /&gt;&lt;br /&gt;Any help would be appreciated.  Thank you.&lt;br /&gt;Mike</description></item></channel></rss>