<?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>Grid Duplicates</title><link>https://community.appian.com/discussions/f/user-interface/39157/grid-duplicates</link><description>I have an editable grid where I can validate if the grid contains any duplicates. I m able to write the validate message but I need to get the index or highlight the row where duplicates actually exists.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Grid Duplicates</title><link>https://community.appian.com/thread/148396?ContentTypeID=1</link><pubDate>Mon, 26 May 2025 13:32:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b5f6f31-ec67-4474-acb9-0c840a0ab103</guid><dc:creator>EREN_YEAGER</dc:creator><description>&lt;p data-start="72" data-end="230"&gt;For highlighting, you can use the &lt;strong data-start="106" data-end="120"&gt;Validation&lt;/strong&gt; parameter of input field, or display an icon using &lt;strong data-start="176" data-end="188"&gt;richText&lt;/strong&gt;, depending on the column content of your grid.&lt;/p&gt;
&lt;p data-start="232" data-end="318"&gt;To identify the index of duplicate values, you can use the &lt;code data-start="291" data-end="308"&gt;wherecontains()&lt;/code&gt; function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid Duplicates</title><link>https://community.appian.com/thread/148378?ContentTypeID=1</link><pubDate>Mon, 26 May 2025 02:51:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d14bbe19-bf22-48da-baa0-43d1efe77297</guid><dc:creator>Vyshnavi Naripeddi</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/reenab0003"&gt;reenab0003&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using the below code you will be able to find the index of the duplicates&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;a!refreshVariable(
    value: a!forEach(
      items: local!data,
      expression: if(
        length(
          wherecontains(fv!item.firstName, local!data.firstName)
        ) &amp;gt;= 2,
        fv!item.studentId,
        {}
      )
    ),
    refreshOnVarChange: local!data
  )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid Duplicates</title><link>https://community.appian.com/thread/148377?ContentTypeID=1</link><pubDate>Sat, 24 May 2025 18:12:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e59c0635-de36-4759-bf2d-f482e6df078f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Well ... not much detail to work with ... the lookup() function can return the index of a value in an array.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>