<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code in browser-enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/68897.aspx</link><pubDate>Tue, 02 Aug 2011 06:56:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68897</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68897.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68897</wfw:commentRss><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Filtering isn&amp;#39;t supported in InfoPath Form Services under MOSS 2007. It seems to work more in SharePoint 2010 but it&amp;#39;s not a slam dunk. Several people have blogged on this site how to do filtering in browser based forms.&amp;nbsp;Setting a value or querying a data connection will work just fine in the browser. It&amp;#39;s just that dropdown filtering won&amp;#39;t. So, the key is to change the business logic&amp;nbsp;to &amp;quot;push&amp;quot; the value as opposed to filter based on a pull.&amp;nbsp;Let me know if you don&amp;#39;t find the blogs or other posts. Search the site for filtering browser or look for David Airapetyan&amp;#39;s blog. qRules will enable parameterized list querying via filterowssvr or you can google around for other approaches that use filterowssvr to filter dropdowns. In SharePoint 2010 you can use OData and it&amp;#39;s super easy to query lists with parameters to get a subset that you display in your second dropdown.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;</description></item><item><title>Code in browser-enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/68778.aspx</link><pubDate>Wed, 27 Jul 2011 19:16:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68778</guid><dc:creator>ocampod</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68778.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=68778</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I have an interesting problem. A have a browser-enabled form with code but it doesn&amp;#39;t seem to work as it should. The code runs correctly in the client, but in the browser, it doesn&amp;#39;t work. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The purpose of the form is to allow users the ability to update information based on their sales region. The form references two SharePoint lists in the form of XML files. &lt;/p&gt;&lt;p&gt;The first SP list matches a user with their respective sales regions. Thus, a user should only have access to their sales regions. The second SP list associates the sales items to the region.&lt;/p&gt;&lt;p&gt;Basically, the user should be able to do the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Select their region from a dropdown list&lt;/li&gt;&lt;li&gt;Select the sales product from another dropdown list (this list is filtered based on the selection from the first list) &lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Ideally, the form performs the following functions:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Captures the user ID (via a rule). The user ID is used to filter the first SP list.&lt;/li&gt;&lt;li&gt;Filters a dropdown menu for the sales regions associated to the user ID (loading event code)&lt;/li&gt;&lt;li&gt;User selects their region from the dropdown list&lt;/li&gt;&lt;li&gt;The second SP list is filtered based on the user&amp;#39;s selection (code)&lt;/li&gt;&lt;li&gt;The user selects the sales product from the second dropdown&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I&amp;#39;m using the form&amp;#39;s loading event to capture the user&amp;#39;s ID and then filtering the first SP list. Again, for some reason this only works in the client and not in the browser enabled form. Any help would be much appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;David &lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>