<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering a secondary data source on a person column</title><link>https://www.infopathdev.com:443/forums/thread/67531.aspx</link><pubDate>Mon, 20 Jun 2011 08:42:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67531</guid><dc:creator>jeestirling</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67531.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67531</wfw:commentRss><description>Hmm that&amp;#39;s a bit of a pain really.

As a workaround (although it probably should be classed as a solution given the constraints) I have set a workflow that populates a string column with the username from the person column.  Using a content type means that the string column can be hidden.</description></item><item><title>Re: Filtering a secondary data source on a person column</title><link>https://www.infopathdev.com:443/forums/thread/67529.aspx</link><pubDate>Mon, 20 Jun 2011 06:57:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67529</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67529.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67529</wfw:commentRss><description>&lt;p&gt;You will need to either a) enter the username column into the list or b) make sure that the user is the last person to edit their Examiner Name rows (and use ModifiefBy as username comparison).&lt;/p&gt;</description></item><item><title>Re: Filtering a secondary data source on a person column</title><link>https://www.infopathdev.com:443/forums/thread/67518.aspx</link><pubDate>Sun, 19 Jun 2011 18:18:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67518</guid><dc:creator>jeestirling</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67518</wfw:commentRss><description>&lt;p&gt;Hi Patrick and thanks for the welcome.&lt;/p&gt;
&lt;p&gt;I am afraid that I may not have made myself clear in the initial post.&lt;/p&gt;

&lt;p&gt;I have a SharePoint list that has the following columns&lt;/p&gt;
&lt;p&gt;1) &amp;quot;Examiner Name&amp;quot; (type = person)&lt;/p&gt;
&lt;p&gt;2) &amp;quot;Faculty&amp;quot; (type = single line of text)&lt;/p&gt;
&lt;p&gt;3) &amp;quot;Course&amp;quot; (type = single line of text)&lt;/p&gt;

&lt;p&gt;When the user opens up a new form I want to show a dropdown list of Courses that he/she is the examiner for.&lt;/p&gt;
	
&lt;p&gt;I already have a field on the form which captures the UserName() and this is what I am trying to use as the filter for the SharePoint list.&lt;/p&gt;
	
&lt;p&gt;The problem is that the datasource associated with my SharePoint list does not return the UserName, instead it returns the Preferred Name (at least it does with owssvr.dll).  The problem is that in our domain Preferred Names are not unique so we can&amp;#39;t really filter using Preferred Name.&lt;/p&gt;

&lt;p&gt;What I am looking for is a way to expose the UserName element from the person column in the SharePoint list so that we can filter the datasource using the UserName() in InfoPath.&lt;/p&gt;</description></item><item><title>Re: Filtering a secondary data source on a person column</title><link>https://www.infopathdev.com:443/forums/thread/67503.aspx</link><pubDate>Sat, 18 Jun 2011 21:01:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67503</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67503</wfw:commentRss><description>&lt;p&gt;Hi JeeStirling and welcome,&lt;/p&gt;
&lt;p&gt;Glad to see you have explored this in depth. InfoPath includes the username function as part of it&amp;#39;s xpath arsenal - add a rule that sets a field&amp;#39;s value when your form loads to the value of username() - use the Fx button to look it up. &lt;/p&gt;
&lt;p&gt;Username() assumes that people are joined to the domain. Then you can use it to get the preferred name or you can just create a separate ShP list that indexes username to Preferred Name. If you have a lot of users, that may be time-consuming and is not an auto option.&amp;nbsp;Another approach is to dig into SharePoint&amp;#39;s UserProfile service and see if there is a map from username to Preferred Name there. Or, better yet, use Active Directory which&amp;nbsp;is bound to have the property.&amp;nbsp;Qdabra provides a free trial to it&amp;#39;s Active Directory Web service as part of DBXL and you could download and install that if you can&amp;#39;t figure it out using UserProfile.&lt;/p&gt;
&lt;p&gt;Hopefully,&amp;nbsp;you can just use owssvr though. qRules provides a simpler way to call FilterOwssvr and pass it a parameter. We have a&amp;nbsp;free trial of that too.&lt;/p&gt;
&lt;p&gt;Lots of options&amp;nbsp;and we do this kind of lookup thing all the time in our forms so let me know if you&amp;#39;d like a quick demo. Just email me.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Filtering a secondary data source on a person column</title><link>https://www.infopathdev.com:443/forums/thread/67273.aspx</link><pubDate>Sat, 11 Jun 2011 14:22:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67273</guid><dc:creator>jeestirling</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67273.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67273</wfw:commentRss><description>&lt;p&gt;I have a secondary data source that retrieves a SharePoint list that includes a person-type column.  I want to filter that list to show only records that have the current user as the person named in the person column.&lt;/p&gt;

&lt;p&gt;From what I can see ...&lt;/p&gt;

&lt;p&gt;If I create the secondary data source as a SharePoint list the person column appears as the person&amp;#39;s Preferred Name. In our situation this is not a suitable value to filter on as there are duplicate Preferred Names in the organisation.&lt;/p&gt;

&lt;p&gt;If I create the secondary data source using a web service or owssvr.dll XMLDATA the person column data appears in the form &amp;quot;ID;# Preferred Name&amp;quot;.  This looks very promising as the ID is clearly unique, but I cannot figure out how to determine the ID of the user in this context.  It appears to be specific to the site collection, but I cannot find a web service or anything else that will return that ID for that site collection.&lt;/p&gt;

&lt;p&gt;I am convinced this not an unusual thing to want to do, but I have not been able to find a way.  Any suggestions?&lt;/p&gt;</description></item></channel></rss>