<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filtering an external data source using an expression contained in the external data</title><link>https://www.infopathdev.com:443/forums/thread/47862.aspx</link><pubDate>Tue, 13 Oct 2009 17:02:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47862</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47862</wfw:commentRss><description>&lt;p&gt;Hi, Stefan:&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I don&amp;#39;t quite understand what you are tyring to do. I believe you want to filter the entries in a listbox that come from a secondary data source but I don&amp;#39;t understand what you want to filter on. What would @precond need to be equal to (or less than, greater than, etc) for you to select a Transition value? &lt;/p&gt;</description></item><item><title>Filtering an external data source using an expression contained in the external data</title><link>https://www.infopathdev.com:443/forums/thread/47718.aspx</link><pubDate>Thu, 08 Oct 2009 14:08:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47718</guid><dc:creator>srzientek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=47718</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would like to populate a listbox&amp;nbsp;with rows from an external data source&amp;nbsp;using the computed value of an expression which is taken from one of the&amp;nbsp;fields in the external data&amp;nbsp;as part of the filter conditions to&amp;nbsp;determine whether to include a given entry.&amp;nbsp; Whilst I can create a filter that uses a static expression as one of its components e.g. the value of the file matches a pattern,&amp;nbsp;I can&amp;#39;t find a way of using the string value of a field in each candidate row as the expression to evaluate.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a bit of the view1.xsl that shows the&amp;nbsp;sort of filter I&amp;#39;d like to get working.&amp;nbsp; Here I&amp;#39;ve&amp;nbsp;made up a function called&amp;nbsp;&amp;quot;EvaluateXPathExpression&amp;quot;&amp;nbsp;as a placeholder for some magic to achieve what I want. &amp;quot;model&amp;quot; being the name of my external data source and precond being one of the fields&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;xsl:for-each&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;select&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;xdXDocument:GetDOM(&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;model&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;)/Model/Transitions/Transition[(EvaluateXPathExpression(@precond))]&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Can anyone help with suggestions for&amp;nbsp;the &amp;quot;magic&amp;quot;, please?&lt;/p&gt;
&lt;p&gt;Preferably compatible with InfoPath 2003 SP1...and&amp;nbsp;only using javascript if necessary.&lt;/p&gt;
&lt;p&gt;Kind Regards, Stefan&lt;/p&gt;</description></item></channel></rss>