<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/32191.aspx</link><pubDate>Thu, 11 Sep 2008 15:12:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32191</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32191</wfw:commentRss><description>&lt;p&gt;I am all set.&amp;nbsp; The missing piece was to simply add a rule to the resource_title field, as follows:&lt;/p&gt;
&lt;p&gt;Condition: if DisplayName is blank&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Set field value&amp;nbsp;(resource_title) to an empty string&lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
&lt;p&gt;Hilary, special thanks&amp;nbsp;to&amp;nbsp;you for your invaluable guidance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/32165.aspx</link><pubDate>Wed, 10 Sep 2008 19:47:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32165</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=32165</wfw:commentRss><description>&lt;p&gt;Hello again.&amp;nbsp; Got sidetracked for a while and now I am back with this.&amp;nbsp; &lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Per some changes below, this was the only way I could correctly autopopulate job titles in the repeating table in&amp;nbsp;my browser-enabled form.&amp;nbsp; The one annoying behavior remaining is that with each row insert MY job title gets prepopulated (it then gets immediately overridden by the correct title based on the person entered in the control).&amp;nbsp; I’ve tried to clear the job title at different points within the method, to no avail.&amp;nbsp; &amp;nbsp;&amp;nbsp;Any ideas on how to overcome this?&amp;nbsp; Appreciate your insight.&amp;nbsp;&amp;nbsp; To refresh your memory, I am invoking &amp;quot;getuserprofilebyname&amp;quot; from the &amp;quot;userprofileservice&amp;quot; web service.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;My main data source now looks like this (same structure as before, some items differently named):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;ContactSelector_Resources (repeating group)&lt;br /&gt;&amp;nbsp; gpContactSelector&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person (repeating group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountId&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountType&lt;br /&gt;&amp;nbsp; resource_title&lt;br /&gt;&amp;nbsp; (...)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;Code:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span&gt;
&lt;p&gt;public void InternalStartup()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;EventManager.XmlEvents[&amp;quot;/my:myFields/my:ContactSelector_Resources/my:gpContactSelector/my:Person&amp;quot;].Changed += new XmlChangedEventHandler(ContactSelector_Resources_gpContactSelector_Person_Changed);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;(...)&lt;/p&gt;&lt;span&gt;
&lt;p&gt;public void ContactSelector_Resources_gpContactSelector_Person_Changed(object sender, XmlEventArgs e)&lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;if (!e.Operation.Equals(XmlOperation.Delete))&lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;XPathNavigator secondaryDS = DataSources[&amp;quot;GetUserProfileByName&amp;quot;].CreateNavigator();&lt;/p&gt;
&lt;p&gt;XPathNavigator secondaryRef = secondaryDS.SelectSingleNode(&amp;quot;/dfs:myFields/dfs:queryFields/s0:GetUserProfileByName/s0:AccountName&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;XPathNavigator mainDS = e.Site.CreateNavigator();&lt;/p&gt;
&lt;p&gt;XPathNavigator mainRef = mainDS.SelectSingleNode(&amp;quot;my:AccountId&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;secondaryRef.SetValue(mainRef.Value);&lt;/p&gt;
&lt;p&gt;DataSources[&amp;quot;GetUserProfileByName&amp;quot;].QueryConnection.Execute();&lt;/p&gt;
&lt;p&gt;secondaryRef = secondaryDS.SelectSingleNode(@&amp;quot;/dfs:myFields/dfs:dataFields/s0:GetUserProfileByNameResponse/s0:GetUserProfileByNameResult/s0:PropertyData[s0:Name = &amp;quot;&amp;quot;Title&amp;quot;&amp;quot;]/s0:Values/s0:ValueData/s0:Value&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;XPathNavigator jobtitle = mainDS.SelectSingleNode(&amp;quot;../../my:resource_title&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (secondaryRef != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;jobtitle.SetValue(secondaryRef.Value);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;jobtitle.SetValue(string.Empty);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31487.aspx</link><pubDate>Fri, 15 Aug 2008 14:48:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31487</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31487</wfw:commentRss><description>&lt;p&gt;Hilary, thank you for your suggestions.&amp;nbsp; I will give them a try and report back later.&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31477.aspx</link><pubDate>Thu, 14 Aug 2008 21:11:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31477</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31477</wfw:commentRss><description>&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;In reference to your earlier questions:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;I think that at first, you were not using the correct Changed event -- you&amp;#39;d attached it to a group higher than the one you needed. It seems in your post of 08-12-2008 04:29 PM you are attached to the correct changed event, that for your repeating group &amp;quot;Person&amp;quot;.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;The event will run every time a row is inserted or deleted. If you only have code you want to have run during one or the other operation, you can wrap it in an &amp;quot;if&amp;quot; statement, like so:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Operation.Equals(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Insert&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//code goes here&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;When I am in doubt about an event, when it is running, how often, etc. I use a message box to let me know:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;if&lt;font size="2"&gt; (e.Operation.Equals(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Insert&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;MessageBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt;.Show(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;In if statement&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;You can also put a breakpoint in your code and watch when you hit it. That can help you see when events are being triggered.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;On to your code itself. I looked at it more closely today, and I think this is what you need:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;id = main.SelectSingleNode(&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:selector_table/my:gpContactSelector/my:Person[1]/my:AccountId&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;should be:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;id = e.Site.CreateNavigator().SelectSingleNode(&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;my:AccountId&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;e, the variable for the XmlEventArgs being passed into the Changed event, is aware of its location in the table. To go back up to your job title, instead of this:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;e.Site.SelectSingleNode(&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:selector_table[1]/my:job_title&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(title);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;I think you need this:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;e.Site.SelectSingleNode(&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;../../my:job_title&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(title);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;Although I am less sure -- I always have to try several variations to get the xpath right moving back up. Of course, you can also use &lt;font size="2"&gt;e.Site.MoveToParent(); to work your way back up the tree.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31432.aspx</link><pubDate>Wed, 13 Aug 2008 15:15:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31432</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31432.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31432</wfw:commentRss><description>&lt;p&gt;Thanks, Hilary,&amp;nbsp;but no luck once again.&amp;nbsp; I wish someone would answer some or all of the questions I posted yesterday (further up).&amp;nbsp; And if someone here has actually&amp;nbsp;accomplished what I am trying to do, I need to hear a clear solution instead of vague suggestions.&amp;nbsp; Please.&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31403.aspx</link><pubDate>Wed, 13 Aug 2008 02:32:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31403</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31403.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31403</wfw:commentRss><description>&lt;p&gt;Hey, just a thought -- on all of the nodes where you are using [1] to grab the node, you are grabbing the first one.... you could try [last()] to get the last node...I&amp;#39;m not sure off hand if [last()] is one of those &amp;quot;not allowed in a browser form&amp;quot; functions, but may be worth a try....&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31402.aspx</link><pubDate>Tue, 12 Aug 2008 23:29:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31402</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31402</wfw:commentRss><description>&lt;p&gt;My level of frustration is now beyond what is acceptable.&amp;nbsp; I have changed my handler object and code to the following and still no results (that is, I can auto-populate my job_title textbox for the first row but not for subsequent rows).&amp;nbsp; This in a browser-enabled form.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; InternalStartup()&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;EventManager.XmlEvents[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:selector_table/my:selector_control/my:Person&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Changed += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlChangedEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(selector_table_selector_control_Person_Changed);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;-------------------&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; selector_table_selector_control_Person_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.Operation == &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlOperation&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ValueChange || e.Operation == &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlOperation&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Insert)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;secondaryDS = DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetUserProfileByName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;secondaryRef = secondaryDS.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/s0:GetUserProfileByName/s0:AccountName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;mainDS = e.Site;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;mainDS.MoveToParent();&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;mainRef = mainDS.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;//my:myFields/my:selector_table/my:selector_control/my:Person/my:AccountId[1]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;secondaryRef.SetValue(mainRef.Value);&lt;/p&gt;DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetUserProfileByName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].QueryConnection.Execute();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;secondaryRef = secondaryDS.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;/dfs:myFields/dfs:dataFields/s0:GetUserProfileByNameResponse/s0:GetUserProfileByNameResult/s0:PropertyData[s0:Name = &amp;quot;&amp;quot;Title&amp;quot;&amp;quot;]/s0:Values/s0:ValueData/s0:Value&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;mainRef = mainDS.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;//my:myFields/my:selector_table/my:job_title[1]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;mainRef.SetValue(secondaryRef.Value);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;I need to get this done real soon.&amp;nbsp; Thanks.&lt;/p&gt;
&lt;p&gt;PS: I have&amp;nbsp;worked with&amp;nbsp;xpath before&amp;nbsp;but never&amp;nbsp;as painfully as here.&amp;nbsp; Not sure what&amp;#39;s up.&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31396.aspx</link><pubDate>Tue, 12 Aug 2008 19:49:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31396</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31396</wfw:commentRss><description>&lt;p&gt;To distinguish which row I am using, can I do something like....&lt;/p&gt;
&lt;p&gt;XPathNavigator mainsource = e.Site;&lt;/p&gt;
&lt;p&gt;mainsource.MoveToParent();&lt;/p&gt;
&lt;p&gt;???&lt;/p&gt;
&lt;p&gt;Then do the rest of the value assignations.&amp;nbsp;&amp;nbsp; I tried this approach without success.&amp;nbsp;&amp;nbsp; So, how&amp;nbsp;do I distinguish rows in a repeating table scenario?&amp;nbsp;&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31389.aspx</link><pubDate>Tue, 12 Aug 2008 18:08:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31389</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31389</wfw:commentRss><description>&lt;p&gt;GetUserProfileByName is a property associated with the MOSS out of the box&amp;nbsp;userprofileservice web service.&amp;nbsp; I established it as receive data.&amp;nbsp; Anyway, maybe part of&amp;nbsp;my problem is in the way I declared the primary source xpathnavigator object?&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31388.aspx</link><pubDate>Tue, 12 Aug 2008 18:00:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31388</guid><dc:creator>altja</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31388</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What does the &lt;font color="#800000"&gt;GetUserProfileByName datasource look like.&amp;nbsp; I am not familar with it.&amp;nbsp; If you would be so kind to include that i would be interested.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;However, I assume your problem is my:Person[1].&amp;nbsp; That is going to be only the first person.&amp;nbsp; I realize you are in a repeating table, but you are not distinguishing whihc row you are using.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31383.aspx</link><pubDate>Tue, 12 Aug 2008 17:17:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31383</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31383</wfw:commentRss><description>&lt;p&gt;I am at a loss.&amp;nbsp; Is it really just my xpaths that are faulty or is it also the type of event handler I am declaring/working on?&amp;nbsp; Well, all that and faulty coding?&amp;nbsp; Let me ask, will a changed event trigger each time a new row is added to a repeating table?&amp;nbsp; Or do I need a different handler?&amp;nbsp; Morever, is the handler associated with the right grouping?&amp;nbsp; Please note that I am using the default insert row&amp;nbsp;functionality that comes with the repeating table control (in other words, I am not using a button control).&amp;nbsp; That said,&amp;nbsp;assuming that&amp;nbsp;a changed event triggers with each new row insert, then the problem is definitely with the xpaths and/or the code.&amp;nbsp; Currently, I can auto-populate the person&amp;#39;s job title textbox ***for the first row only***.&amp;nbsp; Once I insert another row and resolve a name from the Contact Selector, however, the person&amp;#39;s job title textbox no longer auto-populates and so on with other inserted rows.&lt;/p&gt;
&lt;p&gt;This is happening in a ***browser-enabled*** form in the browser (not in preview mode).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can someone please let me know how to resolve this quickly?&lt;/p&gt;
&lt;p&gt;My main&amp;nbsp;data source for this particular set of fields looks like:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;(...)&lt;br /&gt;selector_table&amp;nbsp;(repeating group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; selector_control&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person (repeating group)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountId&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountType&lt;br /&gt;&amp;nbsp;&amp;nbsp;job_title textbox&lt;br /&gt;&amp;nbsp; textbox2&lt;br /&gt;&amp;nbsp; textbox3&lt;br /&gt;&amp;nbsp; textbox4&lt;br /&gt;(...)&lt;/p&gt;
&lt;p&gt;My secondary data source for GetUserProfileByName is the standard structure everyone&amp;#39;s familiar with.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This is what I am&amp;nbsp;coding:&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; selector_table_Changed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; id = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Empty;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; title = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Empty;&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; secondary = DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetUserProfileByName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;main = MainDataSource.CreateNavigator();&lt;/p&gt;id = main.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:selector_table/my:gpContactSelector/my:Person[1]/my:AccountId&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;secondary.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/s0:GetUserProfileByName/s0:AccountName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(id);&lt;/p&gt;DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetUserProfileByName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].QueryConnection.Execute();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;title = secondary.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;/dfs:myFields/dfs:dataFields/s0:GetUserProfileByNameResponse/s0:GetUserProfileByNameResult/s0:PropertyData[s0:Name = &amp;quot;&amp;quot;Title&amp;quot;&amp;quot;]/s0:Values/s0:ValueData/s0:Value&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/p&gt;e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:selector_table[1]/my:job_title&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(title);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Thank you in advance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31336.aspx</link><pubDate>Mon, 11 Aug 2008 11:15:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31336</guid><dc:creator>altja</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31336</wfw:commentRss><description>&lt;font color="#008000" size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font color="#008000" size="2"&gt; nodeId = mMainDataSource.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:path/my:Person/my:AccountId[1]&amp;quot;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font color="#008000" size="2"&gt; (nodeId != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;font color="#008000" size="2"&gt;)&amp;nbsp; //Do something&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;I also, just take the first one and have not found a way to click the button automatically per say.&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31282.aspx</link><pubDate>Fri, 08 Aug 2008 00:39:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31282</guid><dc:creator>Bleak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31282</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;No, I was unable to interact directly with the picker. All I could do was manipulate the data structure it provides to make sure that the first element is always selected.&lt;/p&gt;&lt;p&gt;I do not have the code on hand right now (and won&amp;#39;t until Monday), but the idea itself is pretty simple - you address the DOM node like an array (i.e: nodeset/Person[1]/AccountId) and store this value wherever you need that first element. This can only be done via code, AFAIK (just a simple SetValue assignment).&lt;/p&gt;&lt;p&gt;&amp;nbsp;It&amp;#39;d be great if someone found out how to click the damn button automatically, though.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31281.aspx</link><pubDate>Fri, 08 Aug 2008 00:24:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31281</guid><dc:creator>nailbiter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31281</wfw:commentRss><description>&lt;p&gt;Thanks for the suggestion.&amp;nbsp; Did you have to add a button&amp;nbsp;and buttonclick logic to do so?&amp;nbsp; Would you mind sharing your code?&amp;nbsp; Appreciate it.&lt;/p&gt;</description></item><item><title>Re: How to force click "Check names" in a contact selector control</title><link>https://www.infopathdev.com:443/forums/thread/31278.aspx</link><pubDate>Thu, 07 Aug 2008 21:46:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31278</guid><dc:creator>Bleak</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31278.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=31278</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The simplest solution would be to use position(0) or first() directly in the rules section, but, these functions are forbidden for some reason. So I resorted to addressing the first element of the list in the code via an xml statement. ( ...[1] )&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>