<?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: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77636.aspx</link><pubDate>Mon, 16 Apr 2012 21:36:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77636</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77636</wfw:commentRss><description>&lt;p&gt;You bet - glad you got it working!&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77634.aspx</link><pubDate>Mon, 16 Apr 2012 21:31:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77634</guid><dc:creator>bragaidan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77634</wfw:commentRss><description>&lt;p&gt;I was able to grab the date using substring-before function.&amp;nbsp; Thanks for all of your assistance.&amp;nbsp; I am now able to filter my 50,000+ record SP list on the server side and bring a record back in just a few seconds.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Bragaidan&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77625.aspx</link><pubDate>Mon, 16 Apr 2012 19:23:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77625</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77625</wfw:commentRss><description>&lt;p&gt;Is your main data source a date data type? Or date time?&lt;/p&gt;
&lt;p&gt;If date, use the substring-before function to get the data bafore the space. If datetime, use translate to replace the space with an uppercase T. Look at an XML file in a text editor to see how InfoPath is storing the date values - select a date using a date picker and then save the XML and take a look.&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77624.aspx</link><pubDate>Mon, 16 Apr 2012 19:14:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77624</guid><dc:creator>bragaidan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77624</wfw:commentRss><description>&lt;p&gt;Dope, I had conditional formatting that hid the repeating section if it was null and when I removed the formatting, voila.&lt;/p&gt;&lt;p&gt;&amp;nbsp;THanks a heap.&amp;nbsp; Been looking at it for tooooo long.&lt;/p&gt;&lt;p&gt;Last issue is that I am returning dates from my secondary data source and when I copy those fields to date fields in main data source I have validation problems as I the secondary data source dates come in as &amp;quot;yyyy-mm-dd hh:mm:ss instead of m/d/yyyy&lt;/p&gt;&lt;p&gt;Any thoughts?&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77623.aspx</link><pubDate>Mon, 16 Apr 2012 18:51:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77623</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77623</wfw:commentRss><description>&lt;p&gt;So, if you remove these lines:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator nav = this.CreateNavigator();&lt;br /&gt;string spListJoin = (string)nav.SelectSingleNode(&amp;quot;XPathNavigator nav = this.CreateNavigator();&amp;quot;, this.NamespaceManager).ValueAs(typeof(string));&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;What happens?&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77622.aspx</link><pubDate>Mon, 16 Apr 2012 18:43:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77622</guid><dc:creator>bragaidan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77622</wfw:commentRss><description>GetJoinValue just retrieves the value of a text field that is what I am filtering the list for, basically it is 3 fields concatenated to make the record I am looking for unique.  I could do it in the same routine but I was trying separate it out for troubleshooting purposes.

I would love to use qRules, but its a highly controlled environment and I cannot inject anything that isn&amp;#39;t native to SharePoint and MS Office without significant impact to project.

I have never worked with XML and just saw this as an easy way to do some data integration.  Basically I am using this secondary data connection to search for the existence of contract data and if it finds it, based on my join field, then I can review it and I have another command button that copies it to the Main Data Source for submittal if the use chooses to do so.  Challenge is that the secondary list is over 50,000 records and growing.

I have repeating section on the &amp;quot;Search View&amp;quot; of my form that is the data fields from the secondary connection (FilterOwssvr) so that when I perform my search and it returns something, it will automatically populate that table with the single record it finds.  I am just not sure how to go about it.

I REALLY APPRECIATE YOUR HELP.</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77621.aspx</link><pubDate>Mon, 16 Apr 2012 18:31:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77621</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77621</wfw:commentRss><description>&lt;p&gt;In fact, you don&amp;#39;t seem to be using spListJoin at all - so perhaps just do away with that line? What does your GetJoinValue() method do?&lt;/p&gt;</description></item><item><title>Re: Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77620.aspx</link><pubDate>Mon, 16 Apr 2012 18:21:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77620</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77620.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77620</wfw:commentRss><description>&lt;p&gt;Hi - among other things, what is this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;string spListJoin = (string)nav.SelectSingleNode(&amp;quot;&lt;strong&gt;&lt;em&gt;XPathNavigator nav = this.CreateNavigator();&lt;/em&gt;&lt;/strong&gt;&amp;quot;, this.NamespaceManager).ValueAs(typeof(string));&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;SelectSingleNode takes an XPath to the node you wish to select...Here&amp;#39;s a &lt;a href="http://msdn.microsoft.com/en-us/library/h0hw012b.aspx"&gt;link&lt;/a&gt; to the MSDN docs. &lt;/p&gt;
&lt;p&gt;(qRules has a command for this - much easier than writing your own code if you aren&amp;#39;t a programmer - free trial &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;here&lt;/a&gt;.)&lt;/p&gt;</description></item><item><title>Update secondary data connection in code - owssvr.dll</title><link>https://www.infopathdev.com:443/forums/thread/77618.aspx</link><pubDate>Mon, 16 Apr 2012 17:53:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77618</guid><dc:creator>bragaidan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77618.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=77618</wfw:commentRss><description>&lt;p&gt;I have a secondary data connection to a custom SP 2010 list using IP 2007 called &amp;quot;FilterOwssrv&amp;quot;.

&lt;/p&gt;&lt;p&gt;FilterOwssrv url is: https:///_vti_bin/owssvr.dll?XMLDATA=1&amp;amp;List={list guid} 

I know that it will retrieve my data as if I hardcode the filters to the end of my url it will return the XML doc with the single record I am looking for from my list.

Here is my routine for rebuilding Secondary Data Connection but I keep getting error messages about &amp;quot;Invalid Token&amp;quot;
&lt;/p&gt;&lt;p&gt;private void SetFPDSOptions()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(GetJoinValue());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator nav = this.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string spListJoin = (string)nav.SelectSingleNode(&amp;quot;XPathNavigator nav = this.CreateNavigator();&amp;quot;, this.NamespaceManager).ValueAs(typeof(string));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileQueryConnection q = (FileQueryConnection)this.DataConnections[&amp;quot;FilterOwssvr&amp;quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q.FileLocation = q.FileLocation + &amp;quot;&amp;amp;FilterField1=Join&amp;amp;FilterValue1=&amp;quot; + GetJoinValue();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; q.Execute();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(&amp;quot;Failed to query.&amp;quot; + System.Environment.NewLine + ex.Message);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;p&gt;So I have my existing secondary data connection fields on my form so that when I change the connection by adding the filter it will auto populate my form
Please help!!!!
Thanks,
Bragaidan&lt;/p&gt;</description></item></channel></rss>