<?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>Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/discussions/f/general/12519/want-a-pickerfieldcustom-to-do-starts-with-search-rather-than-like-search</link><description>I am working on version 17.4. 
 I am using a!pickerFieldCustom() to allow users to choose from a text array using an auto-completing picker. The labels as well as the values stored at selection are abbreviations and not long names. 
 The code snippet</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/thread/55747?ContentTypeID=1</link><pubDate>Sat, 26 May 2018 07:31:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fc6c07a-112e-48ec-a368-5f8339991a49</guid><dc:creator>komalc3</dc:creator><description>Thanx &lt;a href="/members/vinayr"&gt;Vinay Kumar Rai&lt;/a&gt; for replying.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/thread/55746?ContentTypeID=1</link><pubDate>Sat, 26 May 2018 07:30:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8102c9c1-d0d0-4253-91c7-b1571d926001</guid><dc:creator>komalc3</dc:creator><description>Thanx &lt;a href="/members/daniell"&gt;Dan Lluhi&lt;/a&gt; , this worked for me!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/thread/55724?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 14:05:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea0c2e7a-d59f-4d0c-94dd-4da6be072e49</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi Komal,&lt;/p&gt;
&lt;p&gt;You need to update the expression&amp;nbsp;ucArrayPickerFilter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;=with(
  local!matches: where(
    a!forEach(
      items: ri!labels, 
      expression: like( fv!item,ri!filter&amp;amp;&amp;quot;*&amp;quot;)
    )
  ),
  a!dataSubset(
    data: index( ri!labels, local!matches), 
    identifiers: index( ri!identifiers, local!matches)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I used LIKE function instead of SEARCH&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/thread/55722?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 13:59:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a58dc54c-acf8-49b1-b580-b2df63fc92db</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;(&lt;a href="https://docs.appian.com/suite/help/18.1/recipe_configure_an_array_picker_that_ignores_duplicates.html"&gt;Corrected Link&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want a!pickerFieldCustom() to do starts with search rather than like search</title><link>https://community.appian.com/thread/55717?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 13:23:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99cac056-eeef-4502-ac3d-af1a932b4c75</guid><dc:creator>Dan Lluhi</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
You&amp;#39;ll want to update the logic within rule!ucArrayPickerFilter. If you&amp;#39;re using the example from the SAIL Recipe (&lt;a href="https://docs.appian.com/suite/help/18.1/recipe_configure_an_array_picker_that_ignores_duplicates.html)"&gt;docs.appian.com/.../recipe_configure_an_array_picker_that_ignores_duplicates.html)&lt;/a&gt;, that expression rule uses fn!search to return any of the labels that match the input anywhere within the label. Instead of using search, you could update that rule to use something like &amp;quot;left(fv!item, len(ri!filter)) = ri!filter&amp;quot; to actually check if the item starts with exactly what&amp;#39;s been typed in by the user.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Dan&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>