<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>Cannot apply operator - Edited code</title><link>https://community.appian.com/discussions/f/user-interface/37613/cannot-apply-operator---edited-code</link><description>Hi , 
 Can anyone please help me with this issue! Thanks for the help in advance. 
 I have an interface , i have used a!gridfield(). In the grid of the column is the date received. The error says that at function a!gridfield cannot apply operator[LESS</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cannot apply operator - Edited code</title><link>https://community.appian.com/thread/141273?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 12:35:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7ebde6c-687e-486c-ae28-cba1c20b9403</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;This function might be part of a plugin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;networkdays(&lt;br /&gt; date(&lt;br /&gt; 2024,&lt;br /&gt; 10,&lt;br /&gt; 20&lt;br /&gt; ),&lt;br /&gt; today()&lt;br /&gt;) which can&amp;nbsp;return same result for you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator - Edited code</title><link>https://community.appian.com/thread/141268?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 07:37:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c54d477-8bac-4a90-863d-00d203d07887</guid><dc:creator>vyshnavig0001</dc:creator><description>&lt;p&gt;Hi , Thanks for your response .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But its not working . I mean the function is not available&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator - Edited code</title><link>https://community.appian.com/thread/141258?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 04:23:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a81b3b42-cf37-4524-ab59-1ad780b24250</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;Can you try adddays(&amp;quot;YOURDATE&amp;quot;,10)&amp;gt;now() and&amp;nbsp;adddays(now(),-10)&amp;lt;today()&amp;nbsp; .That should help you compare the values.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator - Edited code</title><link>https://community.appian.com/thread/141226?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 15:13:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e1cb435-3793-4179-8f5e-03816e9f28ea</guid><dc:creator>vyshnavig0001</dc:creator><description>&lt;p&gt;I am using it coz : For eg : Date received &amp;quot; 9/11/2024 12:00 AM GMT&amp;quot; is one sample data . So here i am trying todate to get date i,e -- 9/11/2024 . I am doing today()- todate(&amp;quot;&lt;span&gt;&amp;nbsp;9/11/2024 12:00 AM &amp;quot;) where we get 19::00:00:00.000 . Now i want only number so i am using to integer. So i am doing&amp;nbsp;&amp;nbsp;tointeger(today()-todate(&amp;quot;9/11/2024 12:00AM&amp;quot;)) .... I am doing it coz i can compare based on whether i get output &amp;gt; 10 or &amp;lt; 10 i show different colors as background.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator - Edited code</title><link>https://community.appian.com/thread/141213?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 14:24:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1db932aa-25ce-48e8-999a-e9e445bad566</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="74989" url="~/discussions/f/user-interface/37613/cannot-apply-operator---edited-code"]todate(fv!row[recordtype!ratings.daterecieved]))[/quote]
&lt;p&gt;Why are you wrapping fv!row[...dateReceived] in &lt;em&gt;todate()&lt;/em&gt;?&amp;nbsp; Wouldn&amp;#39;t the row&amp;#39;s dateReceived column already be a date type?&amp;nbsp; Or does it actually contain text that can be safely passed into the toDate() rule?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator</title><link>https://community.appian.com/thread/141177?ContentTypeID=1</link><pubDate>Sat, 28 Sep 2024 01:37:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1c751fa-5698-46bb-9b73-26db116d0f2e</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;You need to make couple of changes. Replace fv!row with fv!value. Change the background color from &amp;quot;NEGATIVE&amp;quot; to &amp;quot;ERROR&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;backgroundColor:  a!match(
                      value: tointeger(today()-todate(&amp;quot;9/11/2024 12:00 AM&amp;quot;)),
                      whenTrue: fv!value &amp;lt; 10,
                      then: &amp;quot;ERROR&amp;quot;,
                      whenTrue: fv!value &amp;gt; 20,
                      then: &amp;quot;SUCCESS&amp;quot;,
                      default: &amp;quot;NONE&amp;quot;
                    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator</title><link>https://community.appian.com/thread/141175?ContentTypeID=1</link><pubDate>Sat, 28 Sep 2024 00:43:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60436bb6-1760-4dc5-bb29-21c104555473</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;Basically you have a typo. Instead of using fv!value you have used fv!row.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot apply operator</title><link>https://community.appian.com/thread/141170?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 18:40:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:803cde36-9931-40bb-b3df-c57921eb02cb</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Why are you using a!match() but then not actually referencing the &lt;em&gt;value&lt;/em&gt; parameter (via&amp;nbsp;&lt;strong&gt;&lt;em&gt;fv!value&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;) in either of the whenTrue statements?&amp;nbsp; &amp;quot;fv!row&amp;quot; will be the entire data row, which you probably can&amp;#39;t just use in a normal number comparison like &amp;quot;&amp;lt; 10&amp;quot;, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>