<?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>How to highlight changes in read only grid</title><link>https://community.appian.com/discussions/f/data/37465/how-to-highlight-changes-in-read-only-grid</link><description>Hello, I have a doubt and I am unsure how to proceed. 
 
 I have an interface where the individual record rows are displayed in a read only grid where I am using the FK of another table to filter and display only those audits for a specific record. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140358?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 17:51:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5d02ebd-1a2d-4019-adcf-13989a369ae7</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Yeah it&amp;#39;s actually a pretty neat feature! I&amp;#39;ll see if we can get a bit more documentation to talk about it more :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140357?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 15:40:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a75b74d1-52e4-4759-88d5-529d35ea5459</guid><dc:creator>andydwateplus8</dc:creator><description>&lt;p&gt;Thank you, this solution worked for me.&lt;/p&gt;
&lt;p&gt;This was the first time I have seen the fv!currentPage used as there&amp;#39;s not much information on it outside of the one mention in the docs and&amp;nbsp;&amp;nbsp;&lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt;&amp;nbsp;mentioning it in the community&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140352?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 14:01:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61c368f0-9d4a-4e88-8df1-488e7b97db1b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yeah, that could work. Give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140341?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 08:13:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:031b6c16-2106-4ab1-bbdb-5484dbed80c8</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;You are right and I was thinking about this how to make it simple.&amp;nbsp;&lt;br /&gt;here is an idea. If it is business critical, I would add one column in Audit table to track which columns has changed and use that to highlight which columns has changed&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140338?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 05:56:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af0e179e-13d8-4c46-b62f-c816ba32e04d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That&amp;#39;s not a simple task. If you want to do this at runtime inside an interface, you would have to query the data first. Then Iterate on each individual field and create a data structure that holds the data about what has changed. Then you can feed that into the grip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140336?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 05:53:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42f5cfd4-a2d1-4c30-956f-c3647c95e473</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;&lt;a href="/members/andred0523"&gt;andydwateplus8&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you try the following code, attached the output too&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:119px;max-width:634px;" height="119" src="/resized-image/__size/1268x238/__key/communityserver-discussions-components-files/16/pastedimage1725601965681v1.png" width="634" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!gridField(
    label: &amp;quot;Read-only Grid&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    data: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record&amp;#39;,
    columns: {
      a!gridColumn(
        label: &amp;quot;Column Text 1&amp;quot;,
        sortField: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{8fee16c5-bc87-4d33-a46b-e1c39b25f6e9}columnText1&amp;#39;,
        backgroundColor: a!localVariables(
          local!prevDataToCompare:index(
            fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{8fee16c5-bc87-4d33-a46b-e1c39b25f6e9}columnText1&amp;#39;],
            if(
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))=1,
              1,
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))-1
            ),
            null
          ),
          if(fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{8fee16c5-bc87-4d33-a46b-e1c39b25f6e9}columnText1&amp;#39;]=local!prevDataToCompare,&amp;quot;&amp;quot;,&amp;quot;SUCCESS&amp;quot;)
        ),
        value: a!linkField(
          links: {
            a!recordLink(
              label: fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{8fee16c5-bc87-4d33-a46b-e1c39b25f6e9}columnText1&amp;#39;],
              recordType: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record&amp;#39;,
              identifier: fv!identifier
            )
          }
        )
      ),
      a!gridColumn(
        label: &amp;quot;Column Text 2&amp;quot;,
        sortField: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{717a1a55-f027-4e7f-839e-f2b0d3952243}columnText2&amp;#39;,
        value: fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{717a1a55-f027-4e7f-839e-f2b0d3952243}columnText2&amp;#39;],
        backgroundColor: a!localVariables(
          local!prevDataToCompare:index(
            fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{717a1a55-f027-4e7f-839e-f2b0d3952243}columnText2&amp;#39;],
            if(
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))=1,
              1,
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))-1
            ),
            null
          ),
          if(fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{717a1a55-f027-4e7f-839e-f2b0d3952243}columnText2&amp;#39;]=local!prevDataToCompare,&amp;quot;&amp;quot;,&amp;quot;SUCCESS&amp;quot;)
        )
      ),
      a!gridColumn(
        label: &amp;quot;Column Int 1&amp;quot;,
        sortField: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{34d06097-eaf6-437b-8e69-00708b9075f1}columnInt1&amp;#39;,
        value: fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{34d06097-eaf6-437b-8e69-00708b9075f1}columnInt1&amp;#39;],
        align: &amp;quot;END&amp;quot;,
        backgroundColor: a!localVariables(
          local!prevDataToCompare:index(
            fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{34d06097-eaf6-437b-8e69-00708b9075f1}columnInt1&amp;#39;],
            if(
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))=1,
              1,
              cast(1,wherecontains(
                fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;],
                fv!currentPage.data[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{242f2a8c-169a-4345-948b-aa61bf515adf}id&amp;#39;]
              ))-1
            ),
            null
          ),
          if(fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{34d06097-eaf6-437b-8e69-00708b9075f1}columnInt1&amp;#39;]=local!prevDataToCompare,&amp;quot;&amp;quot;,&amp;quot;SUCCESS&amp;quot;)
        )
      ),
      a!gridColumn(
        label: &amp;quot;Created On&amp;quot;,
        sortField: &amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{143ce626-9b78-4401-9b3d-38bce3d99370}createdOn&amp;#39;,
        value: if(
        isnull(fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{143ce626-9b78-4401-9b3d-38bce3d99370}createdOn&amp;#39;]),
        fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{143ce626-9b78-4401-9b3d-38bce3d99370}createdOn&amp;#39;],
        datetext(fv!row[&amp;#39;recordType!{485cddfe-74bb-4111-9761-ced23336d3d0}SSD Test Record.fields.{143ce626-9b78-4401-9b3d-38bce3d99370}createdOn&amp;#39;], &amp;quot;default&amp;quot;)
        ),
        align: &amp;quot;END&amp;quot;
      )
    },
    validations: {},
    refreshAfter: &amp;quot;RECORD_ACTION&amp;quot;,
    showSearchBox: true,
    showRefreshButton: true
  )
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to highlight changes in read only grid</title><link>https://community.appian.com/thread/140334?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 23:04:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:942aea36-6930-4541-96cc-95811f32c94e</guid><dc:creator>Kumar Agniwesh</dc:creator><description>&lt;p&gt;Can be achieved. May be track customrecord field in Record which would tell you if particular column data has changed and use that to change the color of the entry.&lt;br /&gt;&lt;br /&gt;You would need one custom record field to track per column.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>