<?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: Retrieve data for a Infopath list box using stored procedure</title><link>https://www.infopathdev.com:443/forums/thread/47083.aspx</link><pubDate>Thu, 17 Sep 2009 06:02:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47083</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=47083</wfw:commentRss><description>&lt;p&gt;Hi Somebody,&lt;/p&gt;
&lt;p&gt;Best practice is to use a Web Service. Don&amp;#39;t put code in your form. Pass a parameter to the Web Service and have it interact with SQL. Filtering should be done on the server. Qdabra has a free trial of it&amp;#39;s WSSP Web Service product. The Web Service is cheap and will save you time and money. You can install it by going to Qdabra.com and Products and click on WSSP. You could also look at DBXL which includes WSSP and also supports submits to SQL.&lt;/p&gt;
&lt;p&gt;Or, you could spend more time and money and write your own Web Service. I guarantee you that doing this in code within the InfoPath form will be the most costly and time consuming way to do it. I know this because 6-7 years ago we did lots of forms like that. Today we just don&amp;#39;t put code in the form unless we absolutely have to. Lower maintenance cost and happier customers (since they don&amp;#39;t have custom code to maintain in lots of different forms).&lt;/p&gt;
&lt;p&gt;Enough said... &lt;/p&gt;</description></item><item><title>Retrieve data for a Infopath list box using stored procedure</title><link>https://www.infopathdev.com:443/forums/thread/47080.aspx</link><pubDate>Wed, 16 Sep 2009 21:40:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47080</guid><dc:creator>Somebody</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=47080</wfw:commentRss><description>&lt;p&gt;Hello all the experts,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have any experience with info path and this is my first project involved in InfoPath.&amp;nbsp; Any help would be really appreciated!&lt;/p&gt;
&lt;p&gt;In my InfoPath form, there is a list box, I&amp;#39;d like to populate this list box by using stored procedure but it did not work for me.&amp;nbsp; Below is what I have but&amp;nbsp;threw error : XDocument.QueryAdapter is null or not an object. BTW, this is Jscript.&amp;nbsp; Would anybody help me to get it worked and show me how to write this same code in VB as well?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;function msoxd_my_SuperRegions::OnBeforeChange(eventObj) &lt;/p&gt;
&lt;p&gt;{&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XDocument.QueryAdapter.Command = &amp;#39;execute &amp;quot;dbo&amp;quot;.&amp;quot;GetCountry&amp;quot; &amp;#39;; &lt;/p&gt;
&lt;p&gt;XDocument.Query();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>