<?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: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13560.aspx</link><pubDate>Mon, 24 Apr 2006 17:06:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13560</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13560</wfw:commentRss><description>Hi Jerome,&lt;br /&gt;&lt;br /&gt;Please check out these HowTos:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=9111ef580f95479890fc18fb2c5bac85&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdfd3a1edaedc&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=7f693c75c5c94604b01bdfd3a1edaedc&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=987250af134b4ced85cbddc7db724202&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Re: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13559.aspx</link><pubDate>Mon, 24 Apr 2006 14:52:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13559</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13559</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;but how is it possible to add values to a DDL programmatically.&lt;br /&gt;Is there any way ?&lt;br /&gt;&lt;br /&gt;Thx</description></item><item><title>Re: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13558.aspx</link><pubDate>Tue, 13 Sep 2005 05:55:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13558</guid><dc:creator>vasanthaprabu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13558</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Virgul&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;For make this possible you have to connect your database as a secondary datasource in infopath design! But at the last screen of the wizard uncheck "autmatically retreive..." after that go on your drop down properties and bind it to the datasource.&lt;br /&gt;&lt;br /&gt;And in the code write only this line:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;thisXDocument.DataObjects["thenameofyourdatasource"].Query();	&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But with this you can't create your custom SQL request in your database it's always the same!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Thank you very much Mr.Virgul.&lt;br /&gt;Its really Helpful to me.&lt;br /&gt;&lt;br /&gt;Vasanth.</description></item><item><title>Re: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13557.aspx</link><pubDate>Tue, 13 Sep 2005 05:52:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13557</guid><dc:creator>vasanthaprabu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13557.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13557</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;You can also use Rules to Query the secondary data source.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Thank you....very much Mr.Patrick Halstead&lt;br /&gt;If you dont mind...Can you give same examples?.&lt;br /&gt;Vasanth.</description></item><item><title>Re: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13556.aspx</link><pubDate>Sun, 11 Sep 2005 04:53:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13556</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13556</wfw:commentRss><description>You can also use Rules to Query the secondary data source.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/13555.aspx</link><pubDate>Fri, 09 Sep 2005 12:44:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13555</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13555</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;For make this possible you have to connect your database as a secondary datasource in infopath design! But at the last screen of the wizard uncheck "autmatically retreive..." after that go on your drop down properties and bind it to the datasource.&lt;br /&gt;&lt;br /&gt;And in the code write only this line:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;thisXDocument.DataObjects["thenameofyourdatasource"].Query();	&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But with this you can't create your custom SQL request in your database it's always the same!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Programmatically Add the fields to DropDownList</title><link>https://www.infopathdev.com:443/forums/thread/12559.aspx</link><pubDate>Fri, 09 Sep 2005 08:40:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12559</guid><dc:creator>vasanthaprabu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12559</wfw:commentRss><description>Dear Friends,&lt;br /&gt;&lt;br /&gt;I developing some infopath Application.&lt;br /&gt;I have to populate the Values to DropDownList Dynamically...thats means by coding...By coding I have to connect the Database and retrieve the Value for the DropDownList and populates.&lt;br /&gt;&lt;br /&gt;I am get the DropDownList from the Design mode like this,&lt;br /&gt;&lt;br /&gt;IXMLDOMNode ddlCustType = thisXDocument.DOM.selectSingleNode("my:myFields/my:ddlCustomerType");&lt;br /&gt;&lt;br /&gt;After that I dont know the next steps.....&lt;br /&gt;&lt;br /&gt;for test I did like that,&lt;br /&gt;&lt;br /&gt;ddlCustType.text = "hello world";&lt;br /&gt;&lt;br /&gt;Its not taking....&lt;br /&gt;&lt;br /&gt;AnyOne can please help me.&lt;br /&gt;&lt;br /&gt;Thanks in Advance.&lt;br /&gt;&lt;br /&gt;Vasanth.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>