<?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 validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/discussions/f/user-interface/35348/how-to-validate-if-current-row-being-entered-in-editable-grid-already-exits-in-grid</link><description>I want to validate if current row being entered in editable grid is duplicate or not i.e. does it exists in grid already or not.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137371?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 17:04:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a5c7b7b-9517-4e8d-a671-f9355e3d7981</guid><dc:creator>venkatrea696188</dc:creator><description>[quote userid="265396" url="~/discussions/f/user-interface/35348/how-to-validate-if-current-row-being-entered-in-editable-grid-already-exits-in-grid/137364"]can only act on data of the same type (Text, Number (Integer))[/quote]
&lt;p&gt;Approach is almost good but you lost it in transition .&lt;/p&gt;
&lt;p&gt;Isn&amp;#39;t this error saying it clearly. Your trying to compare Invalid types. What you are entering in the grid is a text value but what you are getting from Backend to compare is Integer so look into it how data structured in DB and how you are entering it .&lt;/p&gt;
&lt;p&gt;Or On grid if you are&amp;nbsp; capturing&amp;nbsp; integer value in a text field try wrapping it with &lt;strong&gt;tointeger()&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137366?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 15:56:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c4b4b47-8143-43ea-b627-c7a0ddd43cef</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;you&amp;#39;d have to manually build the logic to do the comparisons between a new row and existing rows, and use it for on-form validation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137365?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 15:08:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce366eb6-3bc4-4f81-ab80-de2bf0b4026d</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;what do you mean by manually?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137364?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 15:07:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f622bb1e-f379-41f9-bbe4-92aa5e74f642</guid><dc:creator>Niharika</dc:creator><description>&lt;p&gt;I tried using whereContains() but it is giving me error,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Expression evaluation error at function &amp;#39;wherecontains&amp;#39; [line 273]: Invalid types, can only act on data of the same type (Text, Number (Integer))&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My line of code is this&lt;/p&gt;
&lt;p&gt;count(wherecontains(fv!item['recordType!SMA StudentMarksData.fields.computer'], local!DB.data['recordType!SMA StudentMarksData.fields.computer']) )&amp;gt;0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137357?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 14:19:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:449c2059-b1a6-4f50-8c33-161714e63505</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;if you&amp;#39;re talking about a new row that the user adds, basically you&amp;#39;d have to implement some validation that checks every column value in that row with every column value from prior rows, and determine if all values match the values from some prior row.&amp;nbsp; this would need to be done manually, but it shouldn&amp;#39;t be that difficult.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to validate if current row being entered in editable grid already exits in grid</title><link>https://community.appian.com/thread/137356?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 14:19:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b3e9c47-ebc6-4301-8e90-b87710177426</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;How you differentiating rows? Any unique fields. We got many ways of comparing arrays for example&amp;nbsp;&amp;nbsp;&lt;strong&gt;Contains().&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>