<?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: Limiting Project List by username</title><link>https://www.infopathdev.com:443/forums/thread/72820.aspx</link><pubDate>Sat, 10 Dec 2011 00:02:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72820</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72820</wfw:commentRss><description>&lt;p&gt;Generally, when I see something like this (works as one user, doesn&amp;#39;t as another) I assume there is something I&amp;#39;m missing. So, make sure you can see on the form all the fields that are in play - drag the repeating group that has your secondary data source onto the form so you can see the values in the field you are filtering on.&amp;nbsp;Add an expression box that contains whatever you are using to determine the current user in your filter (IP username funciton, some other formula, just make sure you can see the data).&lt;/p&gt;&lt;p&gt;Then you can look for why you aren&amp;#39;t getting results. Is it a case issue? Are you comparing JSmith to jsmith? XPath is case sensitive, so those two strings won&amp;#39;t be equal....Just one thing you can investigate - but unless you get the data where you can see it to troubleshoot, it is going to be hard to track down the issue.&lt;/p&gt;</description></item><item><title>Limiting Project List by username</title><link>https://www.infopathdev.com:443/forums/thread/72795.aspx</link><pubDate>Fri, 09 Dec 2011 11:00:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72795</guid><dc:creator>Modus_Comparatio</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=72795</wfw:commentRss><description>&lt;p&gt;Hi All&lt;/p&gt;
&lt;p&gt;Hoping you can help an infopath newbie out.&lt;/p&gt;
&lt;p&gt;Here is the scenario:&amp;nbsp; environment- office365 - sharepoint online&lt;/p&gt;
&lt;p&gt;I have a sharepoint list - containing Projects eg. Project name, Company etc etc, usual stuff.&lt;/p&gt;
&lt;p&gt;I have users booking time against these projects and storing the data in another list( ie time sheet detail list)&lt;/p&gt;
&lt;p&gt;What i want to do is only let users book time against the projects that they are&amp;nbsp;permitted to.&lt;/p&gt;
&lt;p&gt;So i created 5 fields in the projet list( to allow 5 possible users to be granted permission) - called TB1, TB2... you get the idea. (they get their data from a consultant profiles list)&lt;/p&gt;
&lt;p&gt;On each project i then record who can book time to the project in these fields( TB1...)&lt;/p&gt;
&lt;p&gt;Then on&amp;nbsp;the time sheet detail page - i change my combo box lookup ( in infopath designer), to filter the data based on the current logged in user.&lt;/p&gt;
&lt;p&gt;Life is never easy, so i see that there are 2 hurdles.&lt;/p&gt;
&lt;p&gt;1. The project list fields TB1, TB2.... get their data from a Consultant profiles list in sharepoint, so they contain the ID&amp;#39;s from this linked list, not the actual usernames&lt;/p&gt;
&lt;p&gt;2. The username function does not return the users displayed name, but instead their full domain name.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;OK so i &lt;u&gt;can&lt;/u&gt; get a users name with username function, and display this in an info path field &lt;/p&gt;
&lt;p&gt;I can create a combo box that gets data from the consultant profiles list and displays the list ID hence the ID recorded in my target list ( project list)&lt;/p&gt;
&lt;p&gt;Back to the original problem, So i set a filter on the project list data to say, only display projects where field TB1 = the currentuser.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the problem- all this works great for me, but when i log in as another test user, i get no projects returned.&lt;/p&gt;
&lt;p&gt;If i remove the filter on the project list combo box then i see all projects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;There seem to be something strnge about doing the lookup to the Consultant Profiles, when logged in as the other test user.&lt;/p&gt;
&lt;p&gt;I have promoted the test user to the same admin level as my account.&lt;/p&gt;
&lt;p&gt;I have checked that i can read and edit all the lists from the test users account.&lt;/p&gt;
&lt;p&gt;Its just when i add the filter to the project list combo box, i get no data returned for thsi user, but it works fine for me.&lt;/p&gt;
&lt;p&gt;Any ideas&lt;/p&gt;
&lt;p&gt;I attach a form templat that contains the salient fields for this problem&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Modus&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>