<?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: Overriding Secondary Data Source Using OnLoad</title><link>https://www.infopathdev.com:443/forums/thread/6956.aspx</link><pubDate>Thu, 09 Jun 2005 11:08:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6956</guid><dc:creator>shiggins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6956</wfw:commentRss><description>Forget this please as I've managed to get it working, I had attached the data source to the form by accident (embedded it in the template) which was overriding my changes. The default file name specified in the data source within the drop-down list properties is indeed overridden by the event handler.</description></item><item><title>Overriding Secondary Data Source Using OnLoad</title><link>https://www.infopathdev.com:443/forums/thread/4705.aspx</link><pubDate>Thu, 09 Jun 2005 10:44:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4705</guid><dc:creator>shiggins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4705</wfw:commentRss><description>In the book 'Professional InfoPath 2003' it mentions that you can use the 'OnLoad' event handler to create a secondary data source, eg. XML for populating a drop-down list. I wnat to use this so the XML filename is not hard-coded. How do you set the properties under the drop-down control/secondary data source to work with this as I've tried various combinations and the data source specified always overrides the OnLoad one ?! I've only recently started looking at using InfoPath so apologies for any confusion here.&lt;br /&gt;&lt;br /&gt;I think question I'm after is: what value do you set the 'Data Connection' to in the 'Drop-Down List Properties' box when overriding using an eventhandler ?&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>