<?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>Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/discussions/f/general/22179/meaning-of-underscore-_-in-a-pickerfieldcustom-component</link><description>I have a question while using the a!pickerFieldCustom Component example in Document. 
 
 I wonder what the meaning of underscore ( _ ) in line 11 in this code. 
 Below is a link to the page I referenced. 
 https://docs.appian.com/suite/help/21.3/recipe</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/thread/97455?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 16:54:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99ddcf71-a9ca-42f9-999b-c8fd5e4c5949</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I would suggest to start a new thread with your issue as it is a bit different, and this thread is almost a year old.&lt;/p&gt;
&lt;p&gt;Otherwise before doing so l&amp;nbsp; would recommend to:&lt;/p&gt;
&lt;p&gt;- Update your with() function as it has been superseded by a!localVariables()&lt;/p&gt;
&lt;p&gt;- reduce the if() statement to if(len(ri!filter)&amp;lt;2.., as len() operates successfully on null or empty values&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/thread/97454?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 16:38:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:019f9a53-1376-4e13-85e4-96a4799d62a9</guid><dc:creator>pallavin0001</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I am trying achieve the same with above with extra requirement. Control the length of the search from the&amp;nbsp; picker. If the length of the filter less than 2 (len(ri!filter)&amp;lt;2) i am trying not to query from the queryentity.Can u please Help me with this.I am getting&amp;nbsp; below.&lt;span&gt;Invalid index: Cannot index property &amp;#39;data&amp;#39; of type String into type List of Variant&lt;/span&gt;&amp;nbsp;after adding condition to the rule to fetch the data for picker component.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(or(rule!APN_isBlank(ri!filter),and(not(rule!APN_isBlank(ri!filter)),len(ri!filter&amp;lt;2))),
{},
with(
local!output: a!queryEntity(
--filters to apply based on search
).data,
    local!matches: union(local!output, local!output),
    a!dataSubset(
      data: index(
        local!matches,
        ri!pickerDisplay,
        {}
      ),
      identifiers: index(
        local!matches,
        ri!identifier,
        {}
      )
    )
  )
))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/thread/86923?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 01:52:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:575e18eb-2ce3-4243-a819-0643b3b697df</guid><dc:creator>Spacetour</dc:creator><description>&lt;p&gt;Thank you for the reply. It helped me understand.&lt;/p&gt;
&lt;div style="left:174px;position:absolute;top:-20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/thread/86917?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 16:30:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fb921bb-cdba-492c-b1b8-97d37d73aadd</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The technical term for the underscore is &lt;a href="https://docs.appian.com/suite/help/latest/Expressions.html#partial-evaluation-of-rules-and-type-constructors"&gt;partial evaluation&lt;/a&gt;. It used to be something that was used pretty frequently in Appian. For example, the precursor to the a!forEach() function was called apply() and it often required using an underscore. However, with the introduction of newer functions, I believe this is the only place remaining that still uses an underscore.&lt;/p&gt;
&lt;p&gt;Basically its purpose is that it allows you to evaluate the function without having that value defined yet. So if you add an underscore to the filter, it tells Appian that it doesn&amp;#39;t need a value for that to render the component. However, once it&amp;nbsp;&lt;em&gt;does&lt;/em&gt; have a value for what the user typed in, this value will be inserted into the location where the underscore is provided and re-evaluated with the search text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Meaning of underscore( _ ) in a!pickerFieldCustom Component</title><link>https://community.appian.com/thread/86902?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 08:48:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75122bb0-73b5-409a-b389-efe3c68c149c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This will be the actual value at run-time. Check docs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/Expressions.html#advanced-evaluation"&gt;docs.appian.com/.../Expressions.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>