<?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: Populating Dropdowns at Run-Time</title><link>https://www.infopathdev.com:443/forums/thread/8880.aspx</link><pubDate>Tue, 24 Jan 2006 20:12:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8880</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8880.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8880</wfw:commentRss><description>I got it to work.&lt;br /&gt;&lt;br /&gt;Thanks for the info.</description></item><item><title>Re: Populating Dropdowns at Run-Time</title><link>https://www.infopathdev.com:443/forums/thread/8879.aspx</link><pubDate>Tue, 24 Jan 2006 19:01:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8879</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8879</wfw:commentRss><description>If your drop-down list is already populating from the SQL DB then all you need to do is retrieve the rows from the DB and the drop-down will automatically populate. To do this, add this code to your OnLoad event handler:&lt;br /&gt;&lt;br /&gt;XDocument.Query();&lt;br /&gt;&lt;br /&gt;--OR--&lt;br /&gt;&lt;br /&gt;XDocument.DataObjects("Name of secondary data source").Query();&lt;br /&gt;&lt;br /&gt;These two bits of code are the same thing as clicking the "Run Query" button generated on the form and can also be accomplished using rules of the Open/Save functionality in Form Options.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Populating Dropdowns at Run-Time</title><link>https://www.infopathdev.com:443/forums/thread/5297.aspx</link><pubDate>Tue, 24 Jan 2006 17:51:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5297</guid><dc:creator>Lewis68</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5297</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I know this has been covered before, but I can't seem to find an example. I need to populate a Dropdown with results from a SQL DB query at run-time. Can I get an example on how to do this?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description></item></channel></rss>