<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate a Drop-Down List Box via Code</title><link>https://www.infopathdev.com:443/forums/thread/36809.aspx</link><pubDate>Thu, 08 Jan 2009 21:58:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36809</guid><dc:creator>proudestmonkey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36809</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just wondering that if one wanted to populate a drop down list from a datasource not available through an InfoPath datasource (in my case Active Directory) how you would go about that? It seems that through managed c# code I can&amp;#39;t get access to the &amp;quot;Populate List From:&amp;quot; property?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Populate a Drop-Down List Box via Code</title><link>https://www.infopathdev.com:443/forums/thread/19559.aspx</link><pubDate>Thu, 03 May 2007 13:59:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19559</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19559</wfw:commentRss><description>Cool, glad you got it working!</description></item><item><title>Re: Populate a Drop-Down List Box via Code</title><link>https://www.infopathdev.com:443/forums/thread/19538.aspx</link><pubDate>Wed, 02 May 2007 20:32:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19538</guid><dc:creator>kaleo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19538</wfw:commentRss><description>&lt;p&gt;Hi Matt,&lt;/p&gt;&lt;p&gt;Thanks for the post. my main goal was to display two table columns in the single &amp;quot;Display Name&amp;quot; of the Pull-Down and the third Table column as the &amp;quot;Value&amp;quot;&lt;/p&gt;&lt;p&gt;I found a couple blogs on modifying the XSL file but it wouldn&amp;#39;t let me publish a web enabled form with the modified XSL.&lt;/p&gt;&lt;p&gt;I solved the problem by simply creating a SQL Data Connection with the following query (I had to remove some whitespace, hence the &amp;#39;replace&amp;#39;)&lt;/p&gt;&lt;p&gt;SELECT col1, (replace(col2, &amp;#39; &amp;#39;,&amp;#39;&amp;#39;) + &amp;#39; - &amp;#39; + col3)&lt;/p&gt;&lt;p&gt;Which accomplished exactly what I needed.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Kaleo&lt;/p&gt;</description></item><item><title>Re: Populate a Drop-Down List Box via Code</title><link>https://www.infopathdev.com:443/forums/thread/19509.aspx</link><pubDate>Wed, 02 May 2007 15:22:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19509</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19509.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19509</wfw:commentRss><description>&lt;p&gt;Aloha kaleo!&lt;/p&gt;&lt;p&gt;Although the tutorial was written for InfoPath 2003, I think you should be able to accomplish the same thing in IP2007, but the steps will be a little different.&amp;nbsp; However, this tutorial describes something that is not best practice: manually editing the view XSL.&amp;nbsp; I think a better solution for you would be to populate the listbox from a secondary data connection as described in the tutorial below, and then use code to manipulate that DOM, if necessary.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/07/28/Populate-a-Drop_2D00_Down-List-Box-via-a-Secondary-Data-Source.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/07/28/Populate-a-Drop_2D00_Down-List-Box-via-a-Secondary-Data-Source.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Populate a Drop-Down List Box via Code</title><link>https://www.infopathdev.com:443/forums/thread/19386.aspx</link><pubDate>Fri, 27 Apr 2007 04:04:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19386</guid><dc:creator>kaleo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19386</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/07/12/Populate-a-Drop_2D00_Down-List-Box-via-Code.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/07/12/Populate-a-Drop_2D00_Down-List-Box-via-Code.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This is a great article but it doesnt seem to be applicable for InfoPath 2007&lt;/p&gt;&lt;p&gt;Does anybody know how to do this in InfoPath 2007?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;&lt;p&gt;kaleo&lt;/p&gt;</description></item></channel></rss>