<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Getting data from controls during onLoad event</title><link>https://www.infopathdev.com:443/forums/thread/28954.aspx</link><pubDate>Tue, 27 May 2008 09:41:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28954</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28954</wfw:commentRss><description>&lt;p&gt;Hi fused&lt;/p&gt;
&lt;p&gt;First off,&amp;nbsp;welcome to the forum.&lt;/p&gt;
&lt;p&gt;Two thoughts but does the same happen when you are connected to a datasource?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I run conditional events throught rules on form load and that works fine to do things like switch views etc.&amp;nbsp; I do not see why custom onLoad would be any dirfferent.&amp;nbsp; Maybe try creating the rule on load and see how it performs to get some clue as to how the code part would work.&lt;/p&gt;
&lt;p&gt;I hope this helps&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Getting data from controls during onLoad event</title><link>https://www.infopathdev.com:443/forums/thread/28932.aspx</link><pubDate>Sat, 24 May 2008 14:35:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28932</guid><dc:creator>fused</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28932</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to access the selection of a drop down list by using C# on the onLoad event of my Infopath form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I wish I had code to show you but it&amp;#39;s on my work computer and I am at home.&amp;nbsp; I can give you the basics though.&lt;/p&gt;&lt;p&gt;I&amp;#39;m not sure if all of this is correct, but it&amp;#39;s mainly the
selectSingleNode part that I am interested in.&amp;nbsp; The syntax is correct
in my code at work. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am using the selectSingleNode command like so:&lt;/p&gt;&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;//my:dataSourceName&amp;quot;).ToString();&lt;/p&gt;&lt;p&gt;What it is returning is string that has the text of some kind of Microsoft NodeWrapper.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I was thinking that nothing was selected, even though I set a default value on my drop down, so I tested this with a text box and got the exact same result.&lt;/p&gt;&lt;p&gt;Is there some problem with getting data from controls on the form on the onLoad event?&amp;nbsp; I was thinking that maybe they are not yet loaded at this point, but that is just a guess.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>