<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67743.aspx</link><pubDate>Fri, 24 Jun 2011 18:00:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67743</guid><dc:creator>Testman1962</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67743.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67743</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;&lt;p&gt;many thanks for your help, I have found a way around this from another entry on this site. It calculates the difference between 2 dates and out puts this into another field I then take this value and use some conditional formatting to get my traffic light to work.&lt;/p&gt;</description></item><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67649.aspx</link><pubDate>Wed, 22 Jun 2011 14:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67649</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67649</wfw:commentRss><description>&lt;p&gt;The only way around the lack of the AddDays function is to write code that does something similar.&amp;nbsp; It would be some fairly simple code that calculates the number of days between today and the specified date, place that value in a field somewhere, and then use that number for your conditional formatting.&amp;nbsp; It&amp;#39;s our general policy not to write code for people on this forum, but if you&amp;#39;re willing to avail yourself to &lt;a href="http://www.qdabra.com/en/consulting.aspx"&gt;Qdabra&amp;#39;s consulting services&lt;/a&gt;, we can work up a solution for you at a reasonable price.&lt;/p&gt;</description></item><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67638.aspx</link><pubDate>Wed, 22 Jun 2011 07:39:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67638</guid><dc:creator>Testman1962</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67638</wfw:commentRss><description>&lt;p&gt;Hi Jimmy&lt;/p&gt;
&lt;p&gt;I need it to conform to the same rules, ie if &amp;lt;7 days green / 7 to 30 days amber and &amp;gt;30 days red.&amp;nbsp;Even if someone puts the data into the form with a date in the past.&amp;nbsp;This will be used for a overview of live set of information. I could supply my original spreadsheet with the conditioal formating or I could post the rules for you to look at. I think the addition of the drop down selection &amp;quot; YES / NO &amp;quot; sould only be an additional rule with and &amp;quot;AND&amp;quot; condition. ?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just tried this on work system and as they only supply me with MS IP 2003&amp;nbsp; &amp;quot;AddDays&amp;quot; is not supported ! AHHHHHH&lt;br /&gt;Is there any way around this ? sorry to be a right royal pain !&lt;/p&gt;</description></item><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67627.aspx</link><pubDate>Wed, 22 Jun 2011 03:00:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67627</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67627.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67627</wfw:commentRss><description>&lt;p&gt;What color do you want it to be if it&amp;#39;s in the past?&lt;/p&gt;</description></item><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67626.aspx</link><pubDate>Tue, 21 Jun 2011 21:40:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67626</guid><dc:creator>Testman1962</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67626</wfw:commentRss><description>&lt;p&gt;Hi Jimmy&lt;/p&gt;&lt;p&gt;many thanks for the quick responce, I&amp;#39;ve tried it out and it works. But I&amp;#39;ve tried to put in a date in the past and it stays green ! &lt;/p&gt;&lt;p&gt;What I&amp;#39;m trying to do is to have the traffic lights compare what ever date you put in with today and&amp;nbsp;it will conform to the traffic lights.I need it to update every time you open the form.&amp;nbsp;Also I need to have another field with a &amp;quot; YES&amp;nbsp;/ NO &amp;quot; dropdown list and if it&amp;#39;s &amp;quot;NO&amp;quot; &amp;nbsp;it works on the traffic lights , but if it&amp;#39;s&amp;nbsp;&amp;quot;YES&amp;quot; the cell stays white.&lt;/p&gt;&lt;p&gt;can this be done in infopath ?&lt;/p&gt;&lt;p&gt;many thanks&lt;/p&gt;&lt;p&gt;Kevan&lt;/p&gt;</description></item><item><title>Re: traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67568.aspx</link><pubDate>Mon, 20 Jun 2011 15:50:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67568</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67568</wfw:commentRss><description>&lt;p&gt;Something like this should work:&lt;/p&gt;
&lt;p&gt;Condition&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;translate(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;lt;= translate(xdDate:AddDays(xdDate:Today(), 7), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Shade green&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Condition&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;translate(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp;&amp;gt; translate(xdDate:AddDays(xdDate:Today(), 7), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp; AND&amp;nbsp; translate(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;) &amp;lt;= translate(xdDate:AddDays(xdDate:Today(),30), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Shade amber&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Condition&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;translate(&lt;strong&gt;&lt;u&gt;field&lt;/u&gt;&lt;/strong&gt;, &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&amp;nbsp;&amp;gt; translate(xdDate:AddDays(xdDate:Today(), 30), &amp;quot;:-T&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Shade red&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>traffic light system based on 2 dates</title><link>https://www.infopathdev.com:443/forums/thread/67554.aspx</link><pubDate>Mon, 20 Jun 2011 14:04:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67554</guid><dc:creator>Testman1962</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67554</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I need to setup a form with a traffic light indicator. I am using MS IP 2003.&lt;/p&gt;
&lt;p&gt;one date would be from a date picker and compared with todays date (in a repeating table)&lt;/p&gt;
&lt;p&gt;&amp;lt;= 7 ( days)&amp;nbsp;GREEN&lt;/p&gt;
&lt;p&gt;8 to 30 (days) AMBER&lt;/p&gt;
&lt;p&gt;&amp;gt;30 (days) RED&lt;/p&gt;
&lt;p&gt;I have managed it in excel 2003 using conditional formatting,&amp;nbsp;but I can&amp;#39;t seem to find a way in MS IP, I think this may require some code.&lt;/p&gt;
&lt;p&gt;can someone help ?&lt;/p&gt;</description></item></channel></rss>