<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117868.aspx</link><pubDate>Thu, 14 Dec 2017 16:14:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117868</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117868.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117868</wfw:commentRss><description>Did you try the form I attached? Does SelectedAccount have a value when the form loads? I&amp;#39;d assume the rule to set the query field &amp;amp; run needs to go on the SelectedAccount field - so it fires when that value changes.</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117867.aspx</link><pubDate>Thu, 14 Dec 2017 16:00:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117867</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117867.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117867</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117866.aspx</link><pubDate>Thu, 14 Dec 2017 15:59:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117866</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117866.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117866</wfw:commentRss><description>&lt;p&gt;Right so I&amp;#39;m setting the Form Load rule on the SelectedAccount field. I&amp;#39;m setting the SelectedAccount field to the People Picker AccountName, but as soon as I preview my name is coming straight up. What am I doing wrong?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117854.aspx</link><pubDate>Tue, 12 Dec 2017 16:04:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117854</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117854.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117854</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks again Hilary for your help, I&amp;#39;ll take a look!&lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117853.aspx</link><pubDate>Tue, 12 Dec 2017 16:02:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117853</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117853</wfw:commentRss><description>The rule type is set a fields value. You set the field, then you run the query. See attached, on the SelectedAccount field I&amp;#39;ve added rules for you. I also put the secondary data source on the form for you to help you see the values.</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117852.aspx</link><pubDate>Tue, 12 Dec 2017 15:42:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117852</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117852</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Hilary.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Sorry to sound thick. I understand the theory of setting the rules on the helper &amp;#39;SelectedAccount field. We do that because we can&amp;#39;t set these Form Load rules on the other fields. I&amp;#39;ve set the default of &amp;#39;SelectedAccount&amp;#39; to AccounID. What I can&amp;#39;t figure out even with following the link you posted yesterday is how to set the query field in the Data Connection,&amp;nbsp;When I click the Query for data rule all I get is the Action field and Data connection field as pictured? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117851.aspx</link><pubDate>Tue, 12 Dec 2017 15:12:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117851</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117851</wfw:commentRss><description>You have a rule under FormLoad that runs the query without setting the query field. If the query field isn&amp;#39;t set, the GetUserProfileByName connection returns info for the current user. You have a default value for JobTitle that sets the field to AccountID for some reason. As I&amp;#39;ve suggested in the past, it would be better to use rules for this, not defaults. That&amp;#39;s why, in the past, I have suggested you have a helper field (in this form, we&amp;#39;d used &amp;quot;SelectedAccount&amp;quot; - and set the default of the helper field to the account id from your people picker. Then put the rules to set the query field, execute the query, and set all the other fields on &amp;quot;SelectedAccount&amp;quot;. We do this because we can&amp;#39;t set rules on a people picker.</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117850.aspx</link><pubDate>Tue, 12 Dec 2017 14:06:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117850</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117850</wfw:commentRss><description>&lt;p&gt;I noticed that I&amp;#39;d set up an earlier rule that was populating the fields with my details so I stripped them out. I&amp;#39;m sorta lurching towards a solution case now when I select a user it populates the Job Title with i:o# norgine\hjones, so it&amp;#39;s returning results for the selected user, just not the specific details. Problem is I can&amp;#39;t see where that rule is that&amp;#39;s returning the results. I&amp;#39;ve looked at the Rule Inspector but I can&amp;#39;t see where it is. I&amp;#39;ve attached the form, it&amp;#39;s on the Change of Details view. Any help would be really appreciated. &lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117844.aspx</link><pubDate>Mon, 11 Dec 2017 15:40:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117844</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117844</wfw:commentRss><description>https://sharepointisland.wordpress.com/tag/getuserprofilebyname/ is just one sample. You don&amp;#39;t do this in the data connection wizard - but in rules on the form.</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117843.aspx</link><pubDate>Mon, 11 Dec 2017 15:35:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117843</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117843</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hilary. No I haven&amp;#39;t set the query field on the GetUserProfileByName data connection. Do you have a link to a blog on how to do it. I&amp;#39;m looking at the modifying the data connection with the Data Connection Wizard, but can&amp;#39;t see where I could do that. &lt;/p&gt;</description></item><item><title>Re: People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117842.aspx</link><pubDate>Mon, 11 Dec 2017 15:16:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117842</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117842</wfw:commentRss><description>You have to set the query field in your GetUserProfileByName data connection and execute the query. Are you doing that? I encourage you to put the query &amp;amp; data fields for that data connection on your form, temporarily, and add a button that queries it so you can try setting the query field manually and seeing the results.</description></item><item><title>People picker returning just my details</title><link>https://www.infopathdev.com:443/forums/thread/117841.aspx</link><pubDate>Mon, 11 Dec 2017 13:58:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117841</guid><dc:creator>darrenfloyd666</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=117841</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks to Hilary Stoupa on here I managed to get the People Picker field to populate fields for the selected user, but now regardless of who I pick it returns my details? Department, Job Title etc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;This is the formula I&amp;#39;ve got for the Job Title: &lt;/p&gt;&lt;p&gt;xdXDocument:GetDOM(&amp;quot;GetUserProfileByName&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = &amp;quot;SPS-JobTitle&amp;quot;]&lt;/p&gt;&lt;p&gt;and the formula for Last Name:&lt;/p&gt;&lt;p&gt;&amp;nbsp;xdXDocument:GetDOM(&amp;quot;GetUserProfileByName&amp;quot;)/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = &amp;quot;LastName&amp;quot;]&lt;/p&gt;&lt;p&gt;I can&amp;#39;t see where I&amp;#39;m going wrong? &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>