<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conditional Formatting on Calculated Control in Repeating Table/Row isn't evaluating</title><link>https://www.infopathdev.com:443/forums/thread/120363.aspx</link><pubDate>Wed, 30 Jan 2019 18:58:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120363</guid><dc:creator>Michael Boonie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120363</wfw:commentRss><description>Peculiar, because mine is set that way as well. My formula calculate fine, but it&amp;#39;s the conditional formatting that goes awry.&lt;br /&gt;&lt;br /&gt;
I have a very-redacted version which reproduces the problem. &lt;b&gt;RequestForm_demoNullsBad&lt;/b&gt; (attached) illustrates how each text box in the row has to have something in it for the Conditional Formatting to work properly. I can also upload &lt;b&gt;RequestForm_demo&lt;/b&gt; if anyone wants, which illustrates a hack I cobbled together based on another &amp;quot;If()&amp;quot; hack I found a couple of years ago. Essentially, I use a variation on the following line for each text box, to make sure the conditional format has at least a 0 to work with:&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;number(concat(&amp;quot;0&amp;quot;, substring(my:QtyBlueTop, 1, (my:QtyBlueTop &amp;gt; 0) * string-length(my:QtyBlueTop))))&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
(Now that I look at it, it&amp;#39;s unnecessarily complex for my purposes. I think &lt;b&gt;number(concat(&amp;quot;0&amp;quot;, my:QtyBlueTop))&lt;/b&gt; will do... oops! I also caught an error when totaling each row, but that doesn&amp;#39;t matter for now, since it&amp;#39;s the Condition for the formatting rule that needs tweaking.)&lt;br /&gt;&lt;br /&gt;
The template now incorporates the &amp;quot;run-time variable&amp;quot; that I described above, which is the factor by which the text-box amounts are multiplied; the numbers aren&amp;#39;t hard-coded, but stored on Form Load in a secondary XML &amp;quot;FormLogic&amp;quot; file. (I also have a version that simply uses a rule to set a value to 0 if it happens to change to an empty string, which I described above.) I am curious about which method is easier for the browser to render (and why it&amp;#39;s necessary at all, frankly.)</description></item><item><title>Re: Conditional Formatting on Calculated Control in Repeating Table/Row isn't evaluating</title><link>https://www.infopathdev.com:443/forums/thread/120360.aspx</link><pubDate>Wed, 30 Jan 2019 17:19:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120360</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120360</wfw:commentRss><description>I actually just tried this in a form - and my calc&amp;#39;d default value came back as 0 when the fields that made up the calculation were blank - which caused me to remember the setting in the attached screenshot. Does changing that for your form make a difference?</description></item><item><title>Re: Conditional Formatting on Calculated Control in Repeating Table/Row isn't evaluating</title><link>https://www.infopathdev.com:443/forums/thread/120358.aspx</link><pubDate>Wed, 30 Jan 2019 15:35:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120358</guid><dc:creator>Michael Boonie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120358.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120358</wfw:commentRss><description>Ah, well... picking up that line of thought, I tested my values a little more thoroughly and found that the conditions DID evaluate properly &lt;em&gt;as long as none of the values were BLANK.&lt;/em&gt; There had to be a number in each field, even if that number was 0.&lt;br /&gt;&lt;br /&gt;
Which now begs the question: What would be the most appropriate way to address that? Having a default value isn&amp;#39;t enough, because the formula still sees &amp;quot;&amp;quot; instead of &amp;quot;0&amp;quot;.&lt;br /&gt;&lt;br /&gt;
Here is the criteria/formula:&lt;br /&gt;
my:QtyBlueTop * 4.5 + my:QtyRedTop * 10 + my:QtyMarble * 8.5 + my:QtyPurple * 4 + my:QtyGreen * 4 + my:OtherAmt * 0 &amp;gt; 24&lt;br /&gt;&lt;br /&gt;
If any of the fields are empty, the condition apparently doesn&amp;#39;t evaluate as a number, and the conditional formatting doesn&amp;#39;t evaluate as needed. (The actual numbers--4.5, 10, 8.5, etc.--will be replaced with run-time variables after I get this figured out... although that may be a challenge in itself.)&lt;br /&gt;&lt;br /&gt;
Is there a function I can wrap around each addend or value so that empty or null is treated as 0, or so that the formula uses 0 if the value is empty or null? Or is the solution more fundamental? (I know this is a rookie skill, but I promise I&amp;#39;ll save the answer in my OneNote notebook this time!)
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks, Hillary!&lt;br /&gt;&lt;br /&gt;

&lt;em&gt;&lt;b&gt;(Edited ten minutes later!):&lt;/b&gt;&lt;/em&gt;&lt;br /&gt;
OK, so I just wormed around it by putting a rule on each text box that sets the actual value of the bound column to 0 whenever the value changes to null/empty. So, the question is now primarily academic: Is running a rule like that more &amp;quot;efficient&amp;quot; (great gobs of memory notwithstanding), or is it a better use of resources (the computer&amp;#39;s, not mine) to rewrite the formula itself to check for nulls and use 0 instead? (Sort of a &amp;quot;give-a-control-a-fish or teach-a-control-to-fish&amp;quot; polemic.)</description></item><item><title>Re: Conditional Formatting on Calculated Control in Repeating Table/Row isn't evaluating</title><link>https://www.infopathdev.com:443/forums/thread/120354.aspx</link><pubDate>Tue, 29 Jan 2019 22:34:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120354</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120354</wfw:commentRss><description>So, for me at least, when I run into formatting not behaving the way I expect, most often it is because the value of something isn&amp;#39;t what I think it is....can you share your form? Just attach the template under the options tab in a reply...</description></item><item><title>Conditional Formatting on Calculated Control in Repeating Table/Row isn't evaluating</title><link>https://www.infopathdev.com:443/forums/thread/120351.aspx</link><pubDate>Tue, 29 Jan 2019 22:25:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120351</guid><dc:creator>Michael Boonie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=120351</wfw:commentRss><description>Hi. I&amp;#39;m not sure I should pursue this on my own until someone with more insight than I have weighs in.

I am designing an InfoPath form (not a List form) with a very straightforward structure. In the data structure, I have one single repeating section, called &amp;quot;Animal&amp;quot;, and this section uses &amp;quot;default values&amp;quot; to captures and display the properties of 12 animals, e.g. D.O.B., weight, etc. At the end of the row, I have a field that calculates a value which is the sum of several values in that row, each of which are multiplied by the weight shown in the row.

This &amp;quot;Total&amp;quot; calculation works, and recalculates in real time when the other factors change; but basic conditional formatting (used to highlight a total when it exceeds a preset limit) does not. The condition/formula is simply &amp;quot;if the sum of all five calculated values in this row &amp;gt; 24&amp;quot; but it never &amp;quot;kicks in,&amp;quot; neither in Filler nor as a browser-form. But while the calculations for each row update as expected, no Formatting Rules are being run on this repeating table. (They do run elsewhere on the page, however.)

Is this a known bug/undocumented feature?

Thanks in advance for your help.

-Michael Boonie</description></item></channel></rss>