<?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 Re: Enhanced Search Widget 1.1 - Basic Questions in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723457#M287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, Can you please answer above questions. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 20:25:09 GMT</pubDate>
    <dc:creator>LakshmananVenkatesan</dc:creator>
    <dc:date>2015-08-12T20:25:09Z</dc:date>
    <item>
      <title>Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723454#M284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;@Robert I don't know whether below requirements already built in&amp;nbsp; or we need to write a new code for this. Please provide me detailed answer. a) First and foremost thing, when user enter input search value, I need validate using regex like this Ex: txtOperator.replace(/^\s+|\s+$/g, ''). b) I need to add a expression value which should search for 2 (or more) columns. But on display, only single input is provided&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example : Search Expression: Name will be searched in OPER_NM or OPER_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereClause + "and (upper(OPER_NM) like '%" + txtOperator + "%' or upper(OPER_NAME) like '%" + txtOperator + "%')"; c) Need to have input - which takes a list separated by commas, internally this will be split using commas and add in list and create a where clause?. I think this is new requirement d) In attribute result, I need make some column values are hyperlinks - if data start &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt; or www.. I need to display as hyperlink e) I need a set a search expression with radio buttons a) or b) or c) ... how to make this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 18:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723454#M284</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2015-08-11T18:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723455#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S R,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;First and foremost thing, when user enter input search value, I need validate using regex like this Ex: txtOperator.replace(/^\s+|\s+$/g, '').&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is not something supported by the widget and you would have to add it to the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I need to add a expression value which should search for 2 (or more) columns. But on display, only single input is provided&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You just click the "Add Expression Value" again in the configuration UI and you specify the OPERATOR to be AND or OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Need to have input - which takes a list separated by commas, internally this will be split using commas and add in list and create a where clause?. I think this is new requirement&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is what the "IN" operation in the expression value dialog does in allows you to use a SQL statement like&amp;nbsp; FieldName IN ('value1','value2','value3'). There is no need to split the values by the comma as the SQL IN operator allows for a comma separated list to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;In attribute result, I need make some column values are hyperlinks - if data start &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt; or www.. I need to display as hyperlink&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There is nothing in the widget code that interrogates the results to look for a http or www. You add a link in the widgets configuration UI to specify what links you want in your results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;I need a set a search expression with radio buttons a) or b) or c) ... how to make this?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have never considered adding this ability so I have no advice for you there. Why would you need radio buttons and not just select a value from the dropdown using the "Predefined" user list ability available in the widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 19:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723455#M285</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-11T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723456#M286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for Robert for detailed answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Which file needs to be edited for adding regex in input validation. Sorry I didnt go through entire JS files. I am fairly new to JS world and WAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) I understand OR operator needs to be used. But in final widget screen I need to see single input text box, but when I un-check "Ask for values", screen looks like this. I want one input text box which should search multiple columns using OR condition. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="input.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/121923_input.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;c) I will try with IN condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) My question - when I include all fields, some of the columns contains value which is URL. This needs to be displayed as hyperlink in result window. I dont see any option to set a specific column as hyperlink. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) My current application has options listed as a radio button , where user can see the choice and select and map /results changes accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 19:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723456#M286</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2015-08-11T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723457#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, Can you please answer above questions. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 20:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723457#M287</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2015-08-12T20:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723458#M288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S R,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is why I dislike multi question threads because you have to take time and answer each question and then likely spend more time clarifying or answering sub questions to the multiple questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I would look at adding the regEx to the SingleParameter.js. Now where in that file is on you as the developer depending on if it is a string value a number value or a date value.&lt;/LI&gt;&lt;LI&gt;The widget is not developed for this so it would be up to you to recode the widget and UI to suit your needs. I don't have any recommendations for how to accomplish this.&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;You need to look at the Widgets configuration UI and the widgets online Help. There is a "Add Link" right under "Available Fields" that allows for adding hyperlinks to the widgets results.&lt;/LI&gt;&lt;LI&gt;As I said earlier if you need this just for presentation purposes then you will have to implement this in the UI yourself.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 20:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723458#M288</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-12T20:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Search Widget 1.1 - Basic Questions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723459#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, Thanks for being supportive always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 21:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enhanced-search-widget-1-1-basic-questions/m-p/723459#M289</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2015-08-12T21:13:24Z</dc:date>
    </item>
  </channel>
</rss>

