<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Clear Single line search on click code in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517166#M14414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Users getting frustrated with the single line search, after selecting something from the dropdown, it populates the search box with the entire string selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Often need to select some of it, delete, select more, delete, and so (even double/triple click doesn't work) on just to clear the box to enter a "new" search term.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, This is what I did to the SearchInputSkin.mxml to make it clear the text each time the user clicks in the search box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case someone else wants this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:RichEditableText id="textDisplay"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verticalAlign="middle"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widthInChars="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; click="textDisplay.text=''" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:33:44 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2021-12-12T16:33:44Z</dc:date>
    <item>
      <title>Clear Single line search on click code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517166#M14414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Users getting frustrated with the single line search, after selecting something from the dropdown, it populates the search box with the entire string selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Often need to select some of it, delete, select more, delete, and so (even double/triple click doesn't work) on just to clear the box to enter a "new" search term.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, This is what I did to the SearchInputSkin.mxml to make it clear the text each time the user clicks in the search box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case someone else wants this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:RichEditableText id="textDisplay"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verticalAlign="middle"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widthInChars="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; click="textDisplay.text=''" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517166#M14414</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-12T16:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Single line search on click code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517167#M14415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rhett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Users getting frustrated with the single line search, after selecting something from the dropdown, it populates the search box with the entire string selected.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just curious - the current behavior is the same as when searching Google, Bing or Yahoo. Once a user selects an item, it will populate the search box, then user can click in the search box to modify as well as double-click to select a word. Are these users frustrated with those search boxes as well?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Often need to select some of it, delete, select more, delete, and so (even double/triple click doesn't work) on just to clear the box to enter a "new" search term.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What part isn't working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that with the default black-gold colors of the flex viewer it is hard to see the word highlighted when double-clicking, but otherwise I think the current implementation is a good default (except for the hard-to-see visual distinction when selected).&amp;nbsp; Try for example the lighter colored samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/live/index.html?config=apps/config-css-desert.xml"&gt;http://resources.arcgis.com/en/help/flex-viewer/live/index.html?config=apps/config-css-desert.xml&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/live/index.html?config=apps/config-css-sage.xml"&gt;http://resources.arcgis.com/en/help/flex-viewer/live/index.html?config=apps/config-css-sage.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, if someone really wants to change this behavior, they could use your code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517167#M14415</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-02-27T18:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Single line search on click code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517168#M14416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bjorn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it were to work like Google or Bing, then it would be great, but it only partly behaves that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do a search, it will populate the dropdown list with the results that "contain" my search string.&amp;nbsp; If I pick one that the search string is not the very first item, it will populate the box with all the values from all the configured search fields for that feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can then double click to select it, but it will only select a single word.&amp;nbsp; If I have 5 search fields, then I have to either&amp;nbsp; double click many times (as the double click select doesn't span any puctuation, spaces, commas, etc) and delete them, or drag/select the entire string if I want to delete and do a new search.&amp;nbsp; Since some of my fields may have a sentence in there, not just a single word, this is tedious as I have to keep dragging off the viewer until I reach the end of the string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this is similar to Google (of course the Google search box isn't a tiny little box in the corner, and can normally see the "entire" search string) except with Google, if I want to clear the entire string for a new search, then tripple click is the answer (most software, double click selects a word, tripple click selects entire line).&amp;nbsp; If this box had a tripple click/select all like Google, Bing, and Yahoo, and the rest of the world, then it would be a moot point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, a simple clear button would resolve the issue as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There just isn't a "non-frustrating" way to clear a large string from that box when one wants to do a new search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty new to flex and not sure how to add the tripple click option, and had issues trying to get a clear button to show up "outside" of the textinputbox, so I handled it this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517168#M14416</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-02-27T19:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Single line search on click code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517169#M14417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just wanted to chime in and say I agree 100% with Rhett's reply above. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Single Line Search in the top right corner is close to being good, but not quite. The user interaction is quite cumbersome for the exact reasons Rhett mentions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517169#M14417</guid>
      <dc:creator>GISDev1</dc:creator>
      <dc:date>2013-02-28T16:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Single line search on click code</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517170#M14418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Triple-click is a good suggestion - thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile, what I've been using is Ctrl-A, which also selects the whole text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note also that the full text is selected when you use the keyboard to Tab out of it and then Shift-Tab back in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/clear-single-line-search-on-click-code/m-p/517170#M14418</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-02-28T16:59:03Z</dc:date>
    </item>
  </channel>
</rss>

