<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>'Date of Inspection' Field Automatically Changes Color/Text in 'Compliance Field'</title><link>https://www.infopathdev.com:443/forums/thread/103484.aspx</link><pubDate>Fri, 31 Jul 2015 14:43:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103484</guid><dc:creator>Curtis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=103484</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;My master data is in a SharePoint list. In Excel I can set formulas that calculate fields to tell me if the stored date (in this case Date of Last Inspection) is within a certain parameter (last 365 days). And if it is not, the Excel formula can calculate that fact and turn the &amp;#39;Compliance Status&amp;#39; text to a &amp;#39;Red&amp;#39; and/or &amp;#39;Non-Compliance&amp;#39;, indicating a deficiency. Is there such a formula or rules/query capability in InfoPath/SharePoint.&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;Synopsis: Can InfoPath/SharePoint query and calculate existing data in fields to determine compliance of an action; and where there is no compliance, automatically change the formatting of the existing data &amp;#39;Compliance Status&amp;#39; to Non-Compliant&amp;#39;; indicating the lack of compliance - i.e. change the auto populated field to the proper choice (Compliant/Non-compliant, based on the existing date in the Compliance Status field and the system current Date.&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;Example: I entered an inspection report last June (2014). I go into the form today and prepare to enter a new report of this year&amp;#39;s annual inspection. When I entered the data last year it was &amp;#39;Compliant&amp;#39;. Now, I more than 365 days have passed since the last inspection. When the form is opened, the auto populated text in the &amp;quot;Compliance Status&amp;#39; field, based on today&amp;#39;s data and the date of last inspection, should be &amp;#39;Non-compliant&amp;#39;; even though the text originally read &amp;#39;Compliant&amp;#39; when the data was originally entered. &lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;Can this be done, through a rule/query/or calculated value field? Or, can it not be done at all?&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="font-family:arial, sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:auto;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:1;word-spacing:0px;-webkit-text-stroke-width:0px;"&gt;Thank you, &lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>