<?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>Editable Grid Validation</title><link>https://community.appian.com/discussions/f/user-interface/27433/editable-grid-validation</link><description>Hi Can you guys help me with the code I am trying to give validation for the condition so for Add client Dropdown there should be only one active status if same occurs it should throw an validation error. 
 The issue is I tried using whercontains but</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Editable Grid Validation</title><link>https://community.appian.com/thread/107417?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 14:30:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ef49a42-6d33-45be-8930-04ea0eddbbec</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="180643" url="~/discussions/f/user-interface/27433/editable-grid-validation"]....data type are different so it is not working[/quote]
&lt;p&gt;When you say something like this, you &lt;em&gt;really&lt;/em&gt; also need to include details as to what you mean by &amp;quot;not working&amp;quot; (including the code you&amp;#39;re currently trying, not just a screenshot of the grid, as well as the error message you get).&lt;/p&gt;
&lt;p&gt;Because in cases like this, the answer we give could be anything ranging from a slight tweak to help correct a data type casting issue required by a finnicky comparison rule (common in Appian), or a total rewrite of your logic to produce something that works better over-all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable Grid Validation</title><link>https://community.appian.com/thread/107403?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 12:22:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67653f43-6245-450a-bc57-97684b90eb45</guid><dc:creator>Udhayakumar Saravanan</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1675426858808v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We have to use wherecontains() only, the logic needs to be like as below. If you experience data type different error on contains() / wherecontains() fucmtion try casting with tostring, touniforstring, tointeger, etc... functions..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Logic:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
count(
wherecontains(
&amp;quot;Active&amp;quot;,
touniformstring(
index(
local!data.status,
wherecontains(fv!item.type, local!data.type),
{}
)
)
)
) &amp;gt; 1,
&amp;quot;Only one Active row allowed for each Type&amp;quot;,
&amp;quot;&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable Grid Validation</title><link>https://community.appian.com/thread/107380?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 07:08:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec306a4e-d169-4e39-be8d-81a244128133</guid><dc:creator>ujjwalb0003</dc:creator><description>&lt;p&gt;HI ,&lt;/p&gt;
&lt;p&gt;you can try &amp;quot;AND&amp;quot; condition, in which in one contains func you can check for client and in other you can check for Active one. If both are true, then you can provide validation message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable Grid Validation</title><link>https://community.appian.com/thread/107374?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 06:13:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f55f110-9192-4057-83e2-56e62660884b</guid><dc:creator>balajib2826</dc:creator><description>&lt;p&gt;I want to compare both Active and Add client coulmn we can have many add client but for that is active column should be one&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable Grid Validation</title><link>https://community.appian.com/thread/107373?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 05:58:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68bcbd51-c723-4a00-81d6-4887831b7b9a</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;Why not you give the validation on the Active columns?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>