<?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: Conditional Formatting for an arriving due date</title><link>https://www.infopathdev.com:443/forums/thread/72098.aspx</link><pubDate>Tue, 15 Nov 2011 21:30:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72098</guid><dc:creator>boltman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72098</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;I greatly appreciate the prompt and accurate response!&amp;nbsp; I was entering &amp;quot;-7&amp;quot; with the addDays function instead of &amp;quot;+7&amp;quot;.&amp;nbsp; Can&amp;#39;t thank you enough!&lt;/p&gt;
&lt;p&gt;-Derek&lt;/p&gt;</description></item><item><title>Re: Conditional Formatting for an arriving due date</title><link>https://www.infopathdev.com:443/forums/thread/72097.aspx</link><pubDate>Tue, 15 Nov 2011 21:22:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72097</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72097</wfw:commentRss><description>&lt;p&gt;This should work:&lt;/p&gt;
&lt;p&gt;IAVA1_CD &amp;lt;= addDays(today(), 7)&lt;/p&gt;
&lt;p&gt;You might need to finagle the logic to get it to work with your other conditions.&lt;/p&gt;</description></item><item><title>Conditional Formatting for an arriving due date</title><link>https://www.infopathdev.com:443/forums/thread/72096.aspx</link><pubDate>Tue, 15 Nov 2011 21:03:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72096</guid><dc:creator>boltman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72096.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=72096</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m unsure if this is the appropriate place for this post, but I have been racking my brain tyring to figure out how to apply conditional formatting to an InfoPath form I developed to track IT asset compliance with security patches.&lt;/p&gt;
&lt;p&gt;Simply put, I have a text box&amp;nbsp;field with a compliance date titled &amp;quot;IAVA1_CD&amp;quot; (CD for compliance date). This field is read only and includes the date (mm/dd/yyyy)&amp;nbsp;a patch must be applied by.&amp;nbsp; I also have&amp;nbsp;two other&amp;nbsp;text box&amp;nbsp;fields titled &amp;quot;IAVA1_A&amp;quot; (#&amp;nbsp;of systems affected) and &amp;quot;IAVA1_P&amp;quot; (# of systems patched),&amp;nbsp;which allows a user to enter the number of systems affected vs those patched.&amp;nbsp; I want the &amp;quot;IAVA1_A&amp;quot; and &amp;quot;IAVA1_P&amp;quot;&amp;nbsp;fields to be shaded yellow when it&amp;#39;s a week out from the compliance date all the way up to the compliance date.&lt;/p&gt;
&lt;p&gt;I have figured out how to shade the field red when&amp;nbsp;it&amp;#39;s past the compliance date and to leave it clear if the compliance date is greater than the current date.&amp;nbsp; My boss wants an indicator for patches due within a week, and for those to show up yellow all the way up to the compliance date and to turn red after that date.&lt;/p&gt;
&lt;p&gt;Here are the current conditions I&amp;#39;ve applied in the correct order:&lt;/p&gt;
&lt;p&gt;IAVA1_A = IAVA1_P and IAVA1_A is not blank (shade green)&lt;/p&gt;
&lt;p&gt;IAVA 1_CD &amp;gt; today() (shade white)&lt;/p&gt;
&lt;p&gt;IAVA1_A is not equal to IAVA1_P (shade red)&lt;/p&gt;
&lt;p&gt;IAVA1_CD &amp;lt; today() (shade red)&lt;/p&gt;
&lt;p&gt;If anyone can assist me in finding a way to make the IAVA1_A and IAVA1_P fields to be shaded yellow when the compliance date is a week away, then I&amp;#39;ll be able to keep my boss happy and you can feel satisfied knowing&amp;nbsp;that I didn&amp;#39;t waste a week&amp;#39;s worth of time developing this form.&amp;nbsp; Kidding aside, I would greatly appreciate any help offered.&amp;nbsp; Thanks!&lt;/p&gt;</description></item></channel></rss>