<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/60133.aspx</link><pubDate>Mon, 11 Oct 2010 07:08:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60133</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=60133</wfw:commentRss><description>&lt;p&gt;If you are talking about checking the box &amp;quot;Automatically retrieve data when form is opened&amp;quot; while creating data connection, I have that checked from the begining.&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Amira&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/60124.aspx</link><pubDate>Sun, 10 Oct 2010 14:32:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60124</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60124.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=60124</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, for the load event, you can just check &amp;quot;automatically retrieve information&amp;quot;.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/60047.aspx</link><pubDate>Thu, 07 Oct 2010 07:22:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60047</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=60047</wfw:commentRss><description>I have tried referencing this method from &lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;FormEvents_Loading and from&amp;nbsp; &lt;font size="2"&gt;InternalStartup&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;because I need it to check for new rows on next opening of the form&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; refreshDataSources()&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections.Count; ++i)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections[i].Execute();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Use of button is not an option because I need to bring rows prior to displaying the form to user.&lt;/p&gt;
&lt;p&gt;For my own testing purpose I have tried using the button but no luck.&lt;/p&gt;
&lt;p&gt;Thank you for your time&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Amira&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/59836.aspx</link><pubDate>Tue, 05 Oct 2010 17:31:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59836</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59836.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=59836</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;Hi, can you check if the items limits in your sharepoint default&amp;nbsp;view is reach ? if yes increase it.</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/59663.aspx</link><pubDate>Tue, 05 Oct 2010 15:34:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59663</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=59663</wfw:commentRss><description>You&amp;#39;ll need to post your code for people to be able to help you -- what are you currently doing? What is going wrong?</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/59608.aspx</link><pubDate>Tue, 05 Oct 2010 06:48:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59608</guid><dc:creator>colecg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59608.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=59608</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I am also using InfoPath 2007 and SharePoint 2007 and C# for code behind of InfoPath.&lt;/p&gt;
&lt;p&gt;I have tried this but it still does not collect new rows from repeating tables from secodnary sources.&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/27198.aspx</link><pubDate>Thu, 13 Mar 2008 18:12:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27198</guid><dc:creator>Omar Formacio</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=27198</wfw:commentRss><description>&lt;p&gt;Thanks a lot, this was exactly what I was looking for, although I was trying to do this as a possible workaround to a weird error problem I had with InfoPath Forms Services.&amp;nbsp; I had a custom list in SharePoint which name was &amp;quot;Acción&amp;quot;... aparently you can&amp;#39;t use a Data Connection to get this list because of the &amp;quot;ó&amp;quot; character :S. I heard there is a hotfix for this, but what I did was to recreate the list without any weird character on its name, and all worked fine..&amp;nbsp; thanks again for your help.&lt;/p&gt;&lt;p&gt;Omar&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/27155.aspx</link><pubDate>Wed, 12 Mar 2008 00:37:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27155</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=27155</wfw:commentRss><description>&lt;p&gt;Assuming you are using InfoPath 2007-style OM (InfoPath 2007 allows you to use both 2003 and 2007 object models, 2007 is preferred) you can (re)query the dataconnection by calling the Execute() method on it. For example, if your connection is called MySharePointListConnection, you can refresh it by calling the following line from your code:&lt;/p&gt;
&lt;p&gt;this.DataConnections[&amp;quot;MySharePointListConnection&amp;quot;].Execute();&lt;/p&gt;
&lt;p&gt;I hope this answers your question.&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/27154.aspx</link><pubDate>Wed, 12 Mar 2008 00:16:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27154</guid><dc:creator>Omar Formacio</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=27154</wfw:commentRss><description>&lt;p&gt;Thank you for answering so quickly...&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am using InfoPath 2007 and C#.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Omar&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/27153.aspx</link><pubDate>Wed, 12 Mar 2008 00:11:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27153</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=27153</wfw:commentRss><description>&lt;p&gt;Hello Omar and welcome to the forums!&lt;/p&gt;
&lt;p&gt;It&amp;#39;s pretty easy to&amp;nbsp;achieve what you to do, all you need is to get the data connection object in code and call a query method on it. However this will differ between versions of InfoPath.&lt;/p&gt;
&lt;p&gt;What version of InfoPath are you using? What language are you writing your custom code in?&lt;/p&gt;</description></item><item><title>Refresh Secondary Data Source Connection via code...</title><link>https://www.infopathdev.com:443/forums/thread/27152.aspx</link><pubDate>Tue, 11 Mar 2008 23:08:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27152</guid><dc:creator>Omar Formacio</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=27152</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a data connection that recieves data from a sharepoint list.&amp;nbsp; I would like to refresh this secondary data source using custom code :S. I know that I can achieve this by using a refresh button or a query action, but that wont help to what I am trying to do... so, Is there any way to refresh a data connection via code?.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Omar&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>