<?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: Take results of Username() function and perform a lookup on a list</title><link>https://www.infopathdev.com:443/forums/thread/67764.aspx</link><pubDate>Sun, 26 Jun 2011 23:31:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67764</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67764</wfw:commentRss><description>&lt;p&gt;Hi Putnamsam!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing that you have a SharePoint list with usernames in it and that you have a data connection that loads that list on open. Make sure the data connection is set to load on open. &lt;/p&gt;
&lt;p&gt;Do you set the username to a field on your data source or are you just using the username&amp;nbsp;function&amp;nbsp;in your rule?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To debug your form load rule, I suggest adding dialog popups. Who knows, could be a case sensitivity issue. Don&amp;#39;t forget that xpath is case sensitive so if those usernames in your sharepoint list aren&amp;#39;t all in lowercase, your comparison will fail.&lt;/p&gt;
&lt;p&gt;Best of luck!&lt;/p&gt;
&lt;p&gt;PS&amp;gt; how bout them Seahawks?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Take results of Username() function and perform a lookup on a list</title><link>https://www.infopathdev.com:443/forums/thread/67571.aspx</link><pubDate>Mon, 20 Jun 2011 16:29:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67571</guid><dc:creator>putnamsam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67571</wfw:commentRss><description>Ideally I would like to have the form load, pull the Username() and perform a lookup against a SharePoint list of usernames.&amp;nbsp; If the particular username does not exist then switch the view to a read-only view.&amp;nbsp; I can get the Username() function to work and pull in the credentials but when I try and perform a lookup against the list I feel I am leaving somethig out.&amp;nbsp; The expected behavoir is to NOT have the views switch (I am in the user list) but everytime it loads I&amp;nbsp;end up with the read only view.</description></item></channel></rss>