<?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: Conditional fomatting does not fire for values under 10%</title><link>https://www.infopathdev.com:443/forums/thread/34062.aspx</link><pubDate>Mon, 10 Nov 2008 18:50:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34062</guid><dc:creator>superbovine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=34062</wfw:commentRss><description>&lt;p&gt;&lt;strike&gt;I put your statement, boolean(...) in and tried several variation and still did not get it to work&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;&amp;nbsp;However, I put the statement in an expression pop-up box and the expression:&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;&amp;nbsp;boolean(/dfs:myFields/dfs:dataFields/d:_1x1Data/@YTDScore &amp;lt;= /dfs:myFields/my:mainstream/my:varGoalScore)&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;&amp;nbsp;and I also pop-up put it YTDScore and varGoalScore values to pop-up&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;YTDScore = 8.6345381....E-2 &lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;varGoalScore = 0.11&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;boolean(/dfs:myFields/dfs:dataFields/d:_1x1Data/@YTDScore &amp;lt;= /dfs:myFields/my:mainstream/my:varGoalScore) returns &lt;strong&gt;false&lt;/strong&gt; which is incorrect.&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;I tried multipling by 100 in the boolean express but YTDScore = &lt;strong&gt;NaN &lt;/strong&gt;which tells me it is a precision problem.&amp;nbsp; &lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;Is there anyway to cast a decimal as a double?&amp;nbsp; I see that xpath 2.0 supports this, but I do not think infopath 2007 supports this.&lt;/strike&gt;&lt;/p&gt;
&lt;p&gt;I found the solutions, &lt;a href="http://www.infopathdev.com/forums/p/8379/30257.aspx#30257"&gt;http://www.infopathdev.com/forums/p/8379/30257.aspx#30257&lt;/a&gt;.&amp;nbsp; The solution was for SQL server and I am using acces, but I simple went into datasources manager and changed my query to multiple YTDScore by 100 then I adjusted my Goal values accordingly and everything worked.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;&lt;/strike&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strike&gt;&lt;/strike&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Conditional fomatting does not fire for values under 10%</title><link>https://www.infopathdev.com:443/forums/thread/33981.aspx</link><pubDate>Fri, 07 Nov 2008 05:30:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33981</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33981.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33981</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For checking of your condition is correct or not you have to add one expression box in with this condition. Condition is should modified like adding &amp;quot;boolean&amp;quot; function.&lt;/p&gt;
&lt;p&gt;Eg: boolean(../dfs:dataFields/d:_Data/@YTDScore &amp;gt; my:varGoalScore) or&lt;/p&gt;
&lt;p&gt;boolean (../dfs:dataFields/d:_Data/@YTDScore &amp;lt;= my:varGoalScore)&lt;/p&gt;
&lt;p&gt;This value returns true then your condition is satisfied otherwise false. &lt;/p&gt;
&lt;p&gt;Some times condition by default it will not work can you remove once the data and enter again same data in that field.&lt;/p&gt;</description></item><item><title>Conditional fomatting does not fire for values under 10%</title><link>https://www.infopathdev.com:443/forums/thread/33962.aspx</link><pubDate>Thu, 06 Nov 2008 19:47:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33962</guid><dc:creator>superbovine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33962</wfw:commentRss><description>&lt;p&gt;I have a simple conditional formatting setup for &lt;/p&gt;
&lt;p&gt;../dfs:dataFields/d:_Data/@YTDScore &amp;gt; my:varGoalScore (green)&lt;br /&gt;../dfs:dataFields/d:_Data/@YTDScore &amp;lt;= my:varGoalScore (red)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;My problem when value is before 10% i.e. it does not even fire.&amp;nbsp; The text box goes back to the original white color.&amp;nbsp; Everything is double from an access DB.&amp;nbsp; Is this a percision issue, or should I be troubleshooting the XML part?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The expression do work for everything over 10%&lt;/p&gt;</description></item></channel></rss>