<?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: SP2010 web forms - Switch views on Form-load based on SP Group membership</title><link>https://www.infopathdev.com:443/forums/thread/78539.aspx</link><pubDate>Sat, 12 May 2012 22:54:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78539</guid><dc:creator>Brendan42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78539.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=78539</wfw:commentRss><description>All done in&amp;nbsp;a rather non-technical way. I had a list of contact details already, just added another column to those details where I enter the logon credentials of the EHS team. There are others on the list, but their credentials are left blank. Then use a form load rule to switch views if the current users credentials are found in this column. Not ideal, but just couldn&amp;#39;t get the usual method to work.</description></item><item><title>Re: SP2010 web forms - Switch views on Form-load based on SP Group membership</title><link>https://www.infopathdev.com:443/forums/thread/78267.aspx</link><pubDate>Thu, 03 May 2012 09:41:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78267</guid><dc:creator>Brendan42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78267.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=78267</wfw:commentRss><description>&lt;p&gt;Hi Princevis.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already done all that, but I seem ot be missing something...&lt;/p&gt;
&lt;p&gt;Got the following from the Rule inspector:&lt;/p&gt;&lt;span&gt;
&lt;p&gt;Conditions&lt;/p&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;
&lt;p&gt;Name &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;= &amp;quot;AccountName&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Actions&lt;/p&gt;&lt;/font&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;
&lt;p&gt;Set a field&amp;#39;s value: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;userLoginName &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;= &lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;Value&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;[Filtered]&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;
&lt;p&gt;Query using a data connection: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;GetGroupCollectionFromUser&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1"&gt;&lt;font color="#e34700" size="1"&gt;
&lt;p&gt;Document On Load&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;: &lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;Query Group Membership&lt;/p&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Conditions&lt;/p&gt;&lt;/font&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;
&lt;p&gt;@Name&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;[Filtered]&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Actions&lt;/p&gt;&lt;/font&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;
&lt;p&gt;Switch views: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;Normal&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1"&gt;&lt;font color="#e34700" size="1"&gt;
&lt;p&gt;Document On Load&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;: &lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;EHS Team view switch&lt;/p&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Conditions&lt;/p&gt;&lt;/font&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;
&lt;p&gt;Incident_x0020_Type &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;= &amp;quot;Unsafe Condition&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Actions&lt;/p&gt;&lt;/font&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;
&lt;p&gt;Switch views: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;Unsafe Condition&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1"&gt;&lt;font color="#e34700" size="1"&gt;
&lt;p&gt;Document On Load&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;: &lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;UC view switch&lt;/p&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Conditions&lt;/p&gt;&lt;/font&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;&lt;font color="#e34700" size="1" face="TTDFt00"&gt;
&lt;p&gt;Incident_x0020_Type &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;= &amp;quot;Unsafe Act&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;Actions&lt;/p&gt;&lt;/font&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;&lt;font color="#666666" size="1" face="TTDFt00"&gt;
&lt;p&gt;Switch views: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;Unsafe Act&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#e34700" size="1"&gt;&lt;font color="#e34700" size="1"&gt;
&lt;p&gt;Document On Load&lt;/font&gt;&lt;/font&gt;&lt;font size="1" face="TTDFt00"&gt;&lt;font size="1" face="TTDFt00"&gt;: &lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;UA View Switch&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;</description></item><item><title>Re: SP2010 web forms - Switch views on Form-load based on SP Group membership</title><link>https://www.infopathdev.com:443/forums/thread/78266.aspx</link><pubDate>Thu, 03 May 2012 09:06:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78266</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78266.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=78266</wfw:commentRss><description>&lt;p&gt;You have to put change view rule on form load. Get the user by using GetUserProfileByName function from the Userprofile manager webservice. Check the user login and his group and then direct him to view by putting rule to change view on form load.&lt;/p&gt;</description></item><item><title>SP2010 web forms - Switch views on Form-load based on SP Group membership</title><link>https://www.infopathdev.com:443/forums/thread/78264.aspx</link><pubDate>Thu, 03 May 2012 08:51:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78264</guid><dc:creator>Brendan42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=78264</wfw:commentRss><description>&lt;p&gt;Please can someone save me from pulling my hair out on this frustrating issue. New-ish to Sharepoint, using SPD 2010, Infopath 2010, not&amp;nbsp;able to use Visual Studio.&lt;/p&gt;
&lt;p&gt;I have a web form which I want to use to allow us to log issues onto a SP list. The form design is done, comprising three views:&lt;/p&gt;
&lt;p&gt;Date entry view - needs&amp;nbsp;to be shown only to members of a specific&amp;nbsp;SP group called &amp;quot;EHS Team&amp;quot;. This view allows anything on the form to be changed and submitted to the SP list.&lt;/p&gt;
&lt;p&gt;Follow-up view - most of the fields are disabled, but allows for some data entry and marking an item as &amp;quot;Completed&amp;quot;. Allows for submitting to the list. This form is to be accessible to another SP group called &amp;quot;Investigators&amp;quot;&lt;/p&gt;
&lt;p&gt;I need to have the form switch to the correct viw upon loading. I&amp;#39;ve followed the steps in numerous online topics (&lt;a title="Jaliya" href="http://jaliyaudagedara.blogspot.it/2011/05/getting-current-users-sharepoint-group.html" target="_blank"&gt;here&lt;/a&gt; and &lt;a title="shlok" href="http://shloksharepoint.wordpress.com/2011/10/13/infopath-2010-migration-with-user-profile-and-sharepoint-user-group-services/"&gt;here&lt;/a&gt; ) and have got the two Data connections (GetGroupCollectionFromUser and GetUserProfileByName), modified the XSD file to allow for more fields ot be visible etc, but I cannot get the views to switch.&lt;/p&gt;
&lt;p&gt;In both descriptions, there is one step (after they modified the XSD&amp;nbsp;file) where I am not sure, both referring to &amp;quot; Now right click on the manifest.xsf and choose Design. Choose GetUserProfileByName data connection and apply rules on the PropertyData field as following...&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>