<?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: How to write this with code</title><link>https://www.infopathdev.com:443/forums/thread/23348.aspx</link><pubDate>Fri, 28 Sep 2007 19:42:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23348</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23348.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23348</wfw:commentRss><description>&lt;p&gt;Are you just getting the username and doing a look up?&lt;/p&gt;
&lt;p&gt;If that is the case you can go to Tools, Form options, and then Open and Save, and Rules.&amp;nbsp; Here you can add this function and a data connection query and this will be executed as the form is opened and you can take action on the results before the default view is displayed.&lt;/p&gt;
&lt;p&gt;We also have an Active Directory webservice which is included with our Database Accelerator package. &lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry22386.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1.2815 - Developer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With it you can get email address and other information. Also it works in VPN and RAS situations where the user may not be using a local domain account.&lt;/p&gt;</description></item><item><title>How to write this with code</title><link>https://www.infopathdev.com:443/forums/thread/23336.aspx</link><pubDate>Fri, 28 Sep 2007 10:14:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23336</guid><dc:creator>kme@umoeikt.no</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23336.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=23336</wfw:commentRss><description>Hello,

I want these actions to execute when the form loads. (web-form)

Could someone please help me to write this in code and show me where to put it?</description></item></channel></rss>