<?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: change views based on user role.  what am I doing wrong?</title><link>https://www.infopathdev.com:443/forums/thread/69277.aspx</link><pubDate>Tue, 16 Aug 2011 00:20:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69277</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=69277</wfw:commentRss><description>&lt;p&gt;Well, you don&amp;#39;t need Rule 2 if your default view is the Read Only one. If you are previewing and the rule fails, it will assume the current view that you are on, which could be the Edit one. Look at the status bar to see what role InfoPath thinks the user is. If there&amp;#39;s nothing there, maybe it isn&amp;#39;t finding the user correctly and defaulting to the wrong view.&lt;/p&gt;</description></item><item><title>change views based on user role.  what am I doing wrong?</title><link>https://www.infopathdev.com:443/forums/thread/69250.aspx</link><pubDate>Mon, 15 Aug 2011 13:51:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69250</guid><dc:creator>mattb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69250.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=69250</wfw:commentRss><description>One form, two views - one called &amp;quot;Edit&amp;quot; and one &amp;quot;Read-Only&amp;quot;.  Users defined with &amp;quot;Edit&amp;quot; role should see the &amp;quot;Edit&amp;quot; view and all other users should see the &amp;quot;Read-Only&amp;quot; view.   Here&amp;#39;s what I&amp;#39;ve done:

-- I have 4 users defined under User Roles as Edit
-- &amp;quot;Read-Only&amp;quot; view set as (Default)
-- Form Options &amp;gt; Open and Save &amp;gt; Open Behavior &amp;gt; Rules
-- Rule 1 = User&amp;#39;s role is equal to &amp;quot;Edit&amp;quot; -&amp;gt; switch view to &amp;quot;Edit&amp;quot;
-- Rule 2 = User&amp;#39;s role is not equal to &amp;quot;Edit&amp;quot; -&amp;gt; switch views to &amp;quot;Read Only&amp;quot;

A user which is not defined with &amp;quot;Edit&amp;quot; role see the &amp;quot;Edit&amp;quot; view.  What have I missed?</description></item></channel></rss>