<?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: programmatically fill contact selector</title><link>https://www.infopathdev.com:443/forums/thread/53571.aspx</link><pubDate>Mon, 12 Apr 2010 10:09:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53571</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53571</wfw:commentRss><description>&lt;p&gt;Is there really nobody who knows what is going wrong?&lt;/p&gt;</description></item><item><title>Re: programmatically fill contact selector</title><link>https://www.infopathdev.com:443/forums/thread/53134.aspx</link><pubDate>Fri, 26 Mar 2010 09:38:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53134</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53134</wfw:commentRss><description>&lt;p&gt;Nobody??&lt;/p&gt;</description></item><item><title>programmatically fill contact selector</title><link>https://www.infopathdev.com:443/forums/thread/53047.aspx</link><pubDate>Tue, 23 Mar 2010 11:51:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53047</guid><dc:creator>gerwinee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=53047</wfw:commentRss><description>&lt;p&gt;I tried to&amp;nbsp;set the value of a contact selector on the change of an drop down list. I us ethe following code to set the contact selector.&lt;/p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;root.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:Categorie/my:Behandelaar/my:gpContactSelector/my:Person/my:DisplayName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(beheerderOpgemaakt);&lt;br /&gt;root.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:Categorie/my:Behandelaar/my:gpContactSelector/my:Person/my:AccountId&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(beheerderOpgemaakt);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;beheerderOpgemaakt contains an accountId like domain\name&lt;br /&gt;I get an 5337 error message when i tried to do this.&lt;/p&gt;
&lt;p&gt;If i set the value of an textfield instead, everything works fine. It also works fine when i test it in InfoPath preview mode.&lt;br /&gt;The contact selector is working fine when i fill out a name and then check that name against AD.&lt;br /&gt;The name that is set in to the contact selector does not have to be checked against AD. But it has to be an contact selector, because the next the form is opened it must be possible to select someone with the contact selector from AD.&lt;/p&gt;
&lt;p&gt;Does anyone have an idea of what i am doing wrong?&lt;/p&gt;</description></item></channel></rss>