<?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: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/103134.aspx</link><pubDate>Tue, 07 Jul 2015 13:04:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103134</guid><dc:creator>Sumit Dhaundiyal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=103134</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;Can you please tell the steps how you have passed query string parameter&amp;nbsp; in infopath form as I am new to Infopath.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks in advance! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73705.aspx</link><pubDate>Tue, 10 Jan 2012 12:03:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73705</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73705</wfw:commentRss><description>&lt;p&gt;Hi Warrenn,&lt;/p&gt;
&lt;p&gt;Thank you very much for your reply. I will try it out and will let you know if it works.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;BhutiM&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73703.aspx</link><pubDate>Tue, 10 Jan 2012 11:25:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73703</guid><dc:creator>Warrenn Enslin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73703</wfw:commentRss><description>&lt;p&gt;I am still not certain what you want to do here, or what you implemented, but I will try to help as best I can.&lt;/p&gt;&lt;p&gt;What I assume is that you want to display&amp;nbsp;items from a sharepoint list&amp;nbsp;that are filtered by a given ID as&amp;nbsp;parameter&amp;nbsp;in the query string and you want to display these items in an&amp;nbsp;infopath form.&lt;/p&gt;&lt;p&gt;First let me say this is probably not the best use of InfoPath, InfoPath&amp;#39;s power really comes into play when you use it for the role of&amp;nbsp;forms, not necessarily the best tool for the query of data, reports etc... It does the job but there are other tools better suited when it comes to quering and filtering data in sharepoint.&lt;/p&gt;&lt;p&gt;So I suggest just for a simple filtering on a page from a querystring field. Create a view for your list that has the fields and look you want. Then on the web&amp;nbsp;page you want to display the data you do the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;add the list view webpart for your list&lt;/li&gt;&lt;li&gt;edit the list view&amp;nbsp;webpart and select your view you just created apply and close the editor pane&lt;/li&gt;&lt;li&gt;add a querystring filter webpart&lt;/li&gt;&lt;li&gt;edit the query string web part to use a parameter name that is &lt;strong&gt;&lt;u&gt;not ID&lt;/u&gt;&lt;/strong&gt; ID is a key word avoid using it &lt;/li&gt;&lt;li&gt;give it a default value of something you know will not bring back any results eg 0 apply and close the editor pane&lt;/li&gt;&lt;li&gt;then in the list view web part , from the web part drop downmenu (at the top right corner of the web part) select connections &amp;gt; Get Filter Values From &amp;gt; (your filter web part just added)&lt;/li&gt;&lt;li&gt;then map your provider field name to the correct Consumer Field Name ie ID&lt;/li&gt;&lt;li&gt;save page and you&amp;#39;re done&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now if you absolutely have to use InfoPath then the way&amp;nbsp;I would&amp;nbsp;do it&amp;nbsp;in InfoPath is this:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;create your form&amp;nbsp;&lt;/li&gt;&lt;li&gt;add your secondary data source (which I am guessing is a SharePoint&amp;nbsp;list)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;u&gt;DO NOT check the checkbox for &lt;/u&gt;&lt;/strong&gt;Store a copy of the data in the form template&lt;/li&gt;&lt;li&gt;I would also not check the checkbox to automatically retrieve data when the form is opened but that&amp;#39;s not required&lt;/li&gt;&lt;li&gt;add those fields to your view ie map your fields in the repeater control to the correct fields in the added data source&lt;/li&gt;&lt;li&gt;In the Main datasource add a new field for filtering make sure the type is correct&lt;/li&gt;&lt;li&gt;Then add a new Action&amp;nbsp;rule to that field you just added&lt;/li&gt;&lt;li&gt;Make sure the condition is None - Rule runs when field changes&lt;/li&gt;&lt;li&gt;Add to the rule the action to set a field value&lt;/li&gt;&lt;ol&gt;&lt;li&gt;The field to select is the field you want to filter on&amp;nbsp;under queryFields in the secondary datasource&lt;/li&gt;&lt;li&gt;Set it&amp;#39;s value to be a &amp;quot;.&amp;quot; ie the current field you are adding the rule to, (your main datasource field)&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Now add another action to query for data from your recently&amp;nbsp;added connection (secondary datasource)&lt;/li&gt;&lt;li&gt;Save and publish to your sharepoint server make sure to&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Enable this form to be filled out by using a browser is checked&lt;/li&gt;&lt;li&gt;Add your new field in the Main datasource as&amp;nbsp;a field&amp;nbsp;that will&amp;nbsp;be available as a&amp;nbsp;SharePoint Web Part connection parameter.&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;p&gt;Now edit your sharepoint web part page that you want to use to display the form be sure to:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Add the infopath form web part to the page&lt;/li&gt;&lt;li&gt;edit the web part to select your recently published infopath document apply and close the editor pane.&lt;/li&gt;&lt;li&gt;add a querystring filter webpart&lt;/li&gt;&lt;li&gt;edit the query string web part to use a parameter name that is &lt;strong&gt;&lt;u&gt;not ID&lt;/u&gt;&lt;/strong&gt; ID is a key word avoid using it &lt;/li&gt;&lt;li&gt;give it a default value of something you know will not bring back any results eg 0 apply and close the editor pane&lt;/li&gt;&lt;li&gt;now&amp;nbsp;in the&amp;nbsp;infopath form web part , from the web part drop downmenu (at the top right corner of the web part) select connections &amp;gt; Get&amp;nbsp;Data From &amp;gt; (your filter web part just added)&lt;/li&gt;&lt;li&gt;then map your provider field name to the correct Consumer Field Name ie the field added in the infopath form&lt;/li&gt;&lt;li&gt;save page and you&amp;#39;re done&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;Now you should be able to filter via the query string and not get back values when there is no query string parameter.&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73611.aspx</link><pubDate>Sat, 07 Jan 2012 20:46:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73611</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73611.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73611</wfw:commentRss><description>&lt;p&gt;I also just wanted to add that when I remove the rule for Querying the data the form loads successfully and I can see the correct passed QueryString ID but when I add the rule to run the secondary data it brings the site to a halt.&lt;/p&gt;
&lt;p&gt;I am now thinking of writing a visual webpart page and have the form there in asp.net and that will be much faster I am sure if there is no way in InfoPath I can achieve this.&lt;/p&gt;
&lt;p&gt;I just feel that maybe I am missing something in InfoPath, this should work but it is not.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;BhutiM&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73606.aspx</link><pubDate>Sat, 07 Jan 2012 11:50:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73606</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73606.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73606</wfw:commentRss><description>&lt;p&gt;Hi Anson and Everyone in this forum,&lt;/p&gt;
&lt;p&gt;I thought my problem was gone but it is back. For some reason once many people have used my form it starts taking long to open and it times out even after applying all the changes we spoke about. What I would like to know is that how does InfoPath clear the queried data? Does it do it automatically or does it store it somewhere?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The reason I am asking is because I even had to re-do the form and then it works for couple of times and then it start having the problem. Just to recap:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;I am passing an ID via the URL;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I use the QueryString filter to pass this ID to my InfoPath Form and store the value in a field;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I have a secondary data connection in my infoPath which has a filter in the query fields which sets the ID of the item to the same ID as the one passed via querystring;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;I have a field that stores the QueryString ID and I have a rule attached to this field to say if it is not blank then &amp;quot;Query Data Secondary Data Connection&amp;quot;;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;After querying, then set my fields to the results of the Secondary Data Connection;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;This has worked but couple of times using it, it started to be slow and it eventually times out that the form does not come out.&lt;/p&gt;
&lt;p&gt;I even went as far as creating a separate view in my infoPath for a form that is not the same as the form used for Adding and updating the item. &lt;/p&gt;
&lt;p&gt;To me it looks like it loses the filter after a while and return all the records instead.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please help.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Bhuti&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73163.aspx</link><pubDate>Wed, 21 Dec 2011 17:22:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73163</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73163.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73163</wfw:commentRss><description>Glad to hear everything worked out great!</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73152.aspx</link><pubDate>Wed, 21 Dec 2011 13:43:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73152</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73152</wfw:commentRss><description>&lt;p&gt;Hi Anson,&lt;/p&gt;
&lt;p&gt;Thank you again for your help it really guided me until I was able to resolve the issue.&lt;/p&gt;
&lt;p&gt;Your solution worked 100% the only problem was that I still had the option that says &amp;quot;Automatically retrieve data when form is opened&amp;quot; selected which was causing the query to run before the form is loaded.&lt;/p&gt;
&lt;p&gt;After disabling that option my form was not slow anymore even if I had over 5000 records.&lt;/p&gt;
&lt;p&gt;What I have done though is that I have a rule that check of the QueryString has a value and if it does, then I Query the data which then I use the secondary data connection to populate my fields.&lt;/p&gt;
&lt;p&gt;This has been a very good challenge and thanks for your help that I have been able to resolve it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;BhutiM&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73146.aspx</link><pubDate>Wed, 21 Dec 2011 07:18:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73146</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73146</wfw:commentRss><description>&lt;p&gt;Hi Anson,&lt;/p&gt;
&lt;p&gt;Thank you for your reply and it really makes sense but I have one more question for you.&lt;/p&gt;
&lt;p&gt;When you spoke of data source pane I take it you mean in InfoPath under the list of the fields click &amp;quot;Show Advanced View&amp;quot;?&lt;/p&gt;
&lt;p&gt;After selecting the secondary connection do you do the filter in the query fields or using the data fields?&lt;/p&gt;
&lt;p&gt;What I have done is that in the Query Field ID, I have added a rule which check if the query string exist and if it does then set the Data Field ID to be equals to the Querystring ID;&lt;/p&gt;
&lt;p&gt;My problem with this is that I still get the same problem. As soon as I have more data I can&amp;#39;t even open the form to edit the item or add a new one. Do you think I should put the filter on Main data connection as well?&lt;/p&gt;
&lt;p&gt;My rule checks if the querystring exists, what happens where there is no querystring? Does it just goes and get all the data?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards&lt;/p&gt;
&lt;p&gt;BhutiM&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73133.aspx</link><pubDate>Wed, 21 Dec 2011 00:38:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73133</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73133.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73133</wfw:commentRss><description>&lt;p&gt;Hi BhutiM,&lt;/p&gt;&lt;p&gt;Sounds like you&amp;#39;re almost there.&amp;nbsp; If queryFields are supported in your secondary data connection, you can set the ID with the value you&amp;#39;ve retrieved from the query string before you query.&amp;nbsp; This should only return the values that match your criteria.&lt;/p&gt;&lt;p&gt;In the data source pane, there is a drop down up top which should say Main.&amp;nbsp; Select the secondary connection to the list you are querying and then expand the queryFields until you find the ID field you are looking for.&lt;/p&gt;&lt;p&gt;Hopefully this works for you!&lt;/p&gt;</description></item><item><title>Retrieving large amount of data in infopath form problem</title><link>https://www.infopathdev.com:443/forums/thread/73126.aspx</link><pubDate>Tue, 20 Dec 2011 20:50:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73126</guid><dc:creator>BhutiM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=73126</wfw:commentRss><description>&lt;p&gt;Does anyone know how to filter data connection in InfoPath?&lt;/p&gt;
&lt;p&gt;My setup is done as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An ID is passed to the new item form via querystring (The form is added in the page as a web part and the connection with the ID from the querystring so that the ID can be passed to the form is happening quite well); &lt;/li&gt;
&lt;li&gt;I have added rules that check if there is an ID that is passed via the querystring and if there is I run the action &amp;quot;Query Data&amp;quot; which basically just call the data connection; &lt;/li&gt;
&lt;li&gt;From there I have another rule which populates the fields I need to populate using the ID from query string as a filter; &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;At the moment this works well when I don&amp;#39;t have too much data (over 5000 list items) but then it fails when I have too much data.&lt;/p&gt;
&lt;p&gt;I just wish there was a way of filtering the data connection or of querying it using the ID passed to it instead of just querying the whole list.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any takers out there?&lt;/p&gt;
&lt;p&gt;By the way you guys rock, I have been using many advices that I find on this site, its&amp;#39;s only today where I haven&amp;#39;t really find the answer I am looking for.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;BhutiM&lt;/p&gt;</description></item></channel></rss>