<?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>CustomPickerField</title><link>https://community.appian.com/discussions/f/user-interface/8788/custompickerfield</link><description>I am using a custom picker field in an editable grid. This picker field is being called in a loop and only the last row when clicked on add item is editable, rest all the other rows are read only field. Now in the last row of the picker field suggestion</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39094?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 12:24:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0edab15c-3121-409a-85a2-506abfb829c5</guid><dc:creator>ankitab918</dc:creator><description>Hi sikhivahans, It worked. Thanks :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39093?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 11:07:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:321706e5-04fe-493c-a2fc-139757044c29</guid><dc:creator>sikhivahans</dc:creator><description>@ankitab Apply the validation only in the case of editable rows or skip the validation in case of read only rows. I guess you can use the same logic which you have applied for making a row read only or editable and then control the validations based on the same.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39091?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 10:40:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:767c434c-f270-48f4-bed7-c2e21a386040</guid><dc:creator>ankitab918</dc:creator><description>I replaced the above code with the below one. Instead of ri!index, I used count(ri!document) as index to get the last row. It seems to do the trick. However, the validation message is showing on all rows.&lt;br /&gt;&lt;br /&gt;if(any(rule!CP_MatchAnyExistingDoc(_,ri!document[count(ri!document)]),apply(index(ri!document,_),1+enumerate(count(ri!document)-1))),&lt;br /&gt;       &lt;br /&gt;      &amp;quot;This document already exist for the claim. Duplicates not allowed&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39078?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 09:15:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b9b7abc-fe8d-442d-8c23-c539e4ce49ed</guid><dc:creator>ankitab918</dc:creator><description>Thanks for all the suggestion. Instead of eliminating the values from the suggestion, I want a validation error. I am using the below code to achieve that. The validation is working fine for the last row, however, it is validating against all the above rows as well. Please refer the attachment for the UI.&lt;br /&gt;validations:if(any(rule!CP_MatchAnyExistingDoc(_,ri!document[ri!index]),apply(index(ri!document,_),1+enumerate(count(ri!document)-1))),&lt;br /&gt;       &lt;br /&gt;      &amp;quot;This document already exist for the claim. Duplicates not allowed&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;&lt;br /&gt;---rule!CP_MatchAnyExistingDoc-----&lt;br /&gt; if(&lt;br /&gt;    ri!existingDoc.Document.DocName=ri!newDoc.Document.DocName,true,false()&lt;br /&gt;  )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/validationError.jpg"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/validationError.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39037?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 19:29:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:268135d9-9fd5-47e3-bf65-a47c8b99267b</guid><dc:creator>omere</dc:creator><description>you can pass a variable into your gridRowLayout() rule which holds the highest index value. For the picker field component, you can make it disabled if the current value [index] &amp;lt;&amp;gt; highest index value. This will disabled all rows except the last&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39016?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 17:29:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c07cd040-d0dd-4dce-b28d-93bbc94240a3</guid><dc:creator>sridevik7401</dc:creator><description>@ankitab918....As above practitioner suggested Use  filter() or  wherecontains() to eliminate the values that are already entered..&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CustomPickerField</title><link>https://community.appian.com/thread/39008?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2016 14:54:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77f0506c-3451-4f95-b6b2-88b9bd9760c2</guid><dc:creator>PhilB</dc:creator><description>Depending on the data, you can use filter(), reject() or a combination of wherecontains() and remove() to achieve this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>