<?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: Infopath view display selected sections based on user</title><link>https://www.infopathdev.com:443/forums/thread/88029.aspx</link><pubDate>Thu, 14 Mar 2013 18:04:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88029</guid><dc:creator>Kamishiro_Takuto</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88029</wfw:commentRss><description>Thank You for the feedback.</description></item><item><title>Re: Infopath view display selected sections based on user</title><link>https://www.infopathdev.com:443/forums/thread/87989.aspx</link><pubDate>Wed, 13 Mar 2013 20:53:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87989</guid><dc:creator>Den12</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=87989</wfw:commentRss><description>&lt;p&gt;Yes there is. I have done something similar, but the lookup of the current user is against a Sharepoint Group. &lt;/p&gt;&lt;p&gt;A) If you have that list of people in a Sharepoint list, you can run a query rule from a secondary connection to that list&amp;nbsp;&amp;nbsp;and put the user account (from username() function) in the query field. Your list must be already prepared accordingly and contain the user accounts (in a text field)&amp;nbsp;of all necessary people.&amp;nbsp;Having just the&amp;nbsp;names or the the accounts defined as Person or Group field on the list, will not allow you to do use the query fields as Person is not among those).&lt;/p&gt;&lt;p&gt;B) Matching to a Sharepoint Group:&lt;/p&gt;&lt;p&gt;You can check the &lt;a title="link" href="http://www.projectpoint.at/?p=97"&gt;link&lt;/a&gt;. It shows how to use and modify GetUserCollectionFromGroup web-service from Sharepoint.&lt;/p&gt;&lt;p&gt;#1 Once you have completed the match you can store the result in a hidden field on the Infopath form, the use that field in formatting rules to disable/hide any controls you need, whole sections.&lt;/p&gt;&lt;p&gt;For views, On Form Load:&lt;/p&gt;&lt;p&gt;&amp;nbsp; - use the first rule to specify to load the most restrictive&amp;nbsp;view, then in another rule right after..&lt;/p&gt;&lt;p&gt;&amp;nbsp; - run an action rule to execute the queries as specified for the GetUserCollectionFromGroup. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use username() IP function to get the user if necessary. You can also use the GetUserProfileByName Sharepoint web-service in secondary data connection, but if your setup involves separate web-servers, it might be returning the AppPoolAccount. If not, use the Preferred Name field returned from that web-service.&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Run Action rule, which Changes the View to the &amp;quot;Admin View&amp;quot; if the result/flag you saved (#1, above)&amp;nbsp; is what you are expecting for an admin or that special&amp;nbsp;user/group.&lt;/p&gt;&lt;p&gt;Hope it helps.&lt;/p&gt;</description></item><item><title>Infopath view display selected sections based on user</title><link>https://www.infopathdev.com:443/forums/thread/87985.aspx</link><pubDate>Wed, 13 Mar 2013 18:47:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87985</guid><dc:creator>Kamishiro_Takuto</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87985.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=87985</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;

I&amp;#39;d like to build a form with a second view created for as user&amp;#39;s approval. &lt;br /&gt;&lt;br /&gt;

The idea is that when the second view&amp;#39;s form loads, it will only display a selected number of fields based on the user.&lt;br /&gt;&lt;br /&gt;

Ex.&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Status&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;ApproveButton     RejectButton&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;Name&lt;br /&gt;
Entry1&lt;br /&gt;
Entry2&lt;br /&gt;&lt;/b&gt;

&lt;br /&gt;&lt;br /&gt;
While loading, the form will search a custom list of authorized approvers&lt;br /&gt;&lt;br /&gt;

If the user is among the authorized approvers , the Status field and Buttons appears and the rest of the field are set to read-only.&lt;br /&gt;&lt;br /&gt;

If the user is either the user who created the entry or any other user, they will only view the Name, Entry1 and Entry2 fields as read-only view.&lt;br /&gt;&lt;br /&gt;

Is there a way to do this? Thanks.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>