<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Preview vs Browser discrepancies</title><link>https://www.infopathdev.com:443/forums/thread/86733.aspx</link><pubDate>Tue, 05 Feb 2013 10:06:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86733</guid><dc:creator>stukkend</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86733.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86733</wfw:commentRss><description>Ernesto, you have opened my eyes! Thank you!

This works great. I remember doing this a few years ago, but just forgot how I did it. Haven&amp;#39;t done IP development in a long time.

I will add this to my bag of knowledge.

Keep on rocking dude!</description></item><item><title>Re: Preview vs Browser discrepancies</title><link>https://www.infopathdev.com:443/forums/thread/86710.aspx</link><pubDate>Mon, 04 Feb 2013 17:12:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86710</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86710</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;stukkend:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Is there any other way I can pre-filter a secondary datasource that reads a SharePoint list?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;If you&amp;#39;re using InfoPath 2010 and SharePoint 2010, then you can indeed filter. This feature is available out of the box and you don&amp;#39;t need any code.&lt;/p&gt;&lt;p&gt;When you create the data connection, you&amp;#39;ll see you have queryfields and datafields.&lt;/p&gt;&lt;p&gt;Set the filter value in the queryfields, then execute the data connection, and you&amp;#39;ll get the filtered results back in the data fields.&lt;/p&gt;&lt;p&gt;So it seems to me like there&amp;#39;s an option simpler than using code, and perhaps the solution is to investigate and pursue this easier alternative.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Preview vs Browser discrepancies</title><link>https://www.infopathdev.com:443/forums/thread/86694.aspx</link><pubDate>Mon, 04 Feb 2013 15:03:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86694</guid><dc:creator>stukkend</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=86694</wfw:commentRss><description>I have an Administrator (full-trust) IP2010 web form. I wrote some code that runs in OnLoad event. The code basically applies a filter to a Secondary Datasource, which is a SharePoint list. The filter basically trims down the list to only items where a specific column contains the current user&amp;#39;s username. I have a repeating table that shows the data in the secondary list.

When I run the form (and code) in preview mode, everything works well. I then publish the form to SharePoint, but the data is not filtered. It&amp;#39;s as if the code in the OnLoad event is not being called at all.

I have also tried to filter the repeating table by applying a rule that states : hide the control (table) if DisplayName in the repeating table row is not the same as the DisplayName in a field that I set using the GetUserProfileByName web method. Again, in the preview this works well, but in the browser, all rows are returned, but here&amp;#39;s the weird thing; when I hover over the repeating table, the rows that I do not want then disappears. This is very quirky and not a suitable solution.

Has anyone ever experienced this type of behavior? Could it be that I am using the OnLoad event incorrectly?

Is there any other way I can pre-filter a secondary datasource that reads a SharePoint list?</description></item></channel></rss>