<?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 Search First and Last name, in Owner1 and Owner2 Fields in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/search-first-and-last-name-in-owner1-and-owner2/m-p/1297833#M14911</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have two fields&amp;nbsp; Owner1 and Owner2&amp;nbsp; that contain&amp;nbsp; concatenated First Name, middle initial, Last Name for owners in them. I have started to create a search that first allows the user to enter last name and first name into separate search boxes.&amp;nbsp; The code that I have created, I thought would narrow down the list by Last name and then reselect from that list where it finds first name to meet the criteria.&amp;nbsp; This is the code I have developed and I am looking for help that can guide me on how to create a search for a name like John&amp;nbsp; A Smith, or Mary Q Smith in Owner1 or Owner2 fields when the user enters John Smith or Mary Smith or any part that matches in either search box.&lt;/P&gt;&lt;P&gt;The rest endpoint for this service is also attached.&amp;nbsp; Thanks in advance for any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"alias": "Owner Name",&lt;BR /&gt;"textsearchlabel": "Search by Owner Name",&lt;BR /&gt;"values": {&lt;BR /&gt;"value": [&lt;BR /&gt;{&lt;BR /&gt;"fieldObj": {&lt;BR /&gt;"name": "LandRecTable_2023.OWNERNME1",&lt;BR /&gt;"label": "OwnerName",&lt;BR /&gt;"shortType": "string",&lt;BR /&gt;"type": "esriFieldTypeString"&lt;BR /&gt;},&lt;BR /&gt;"valueObj": {&lt;BR /&gt;"value": ""&lt;BR /&gt;},&lt;BR /&gt;"prompt": "Enter Last Name",&lt;BR /&gt;"textsearchhint": "Smith",&lt;BR /&gt;"sqltext": "Upper(LandRecTable_2023.OWNERNME1) LIKE Upper('%[value]%') OR Upper(LandRecTable_2023.OWNERNME2) LIKE Upper('%[value]%')",&lt;BR /&gt;"operation": "stringOperatorContains",&lt;BR /&gt;"operator": "AND"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"fieldObj": {&lt;BR /&gt;"name": "LandRecTable_2023.OWNERNME1",&lt;BR /&gt;"label": "OwnerName1",&lt;BR /&gt;"shortType": "string",&lt;BR /&gt;"type": "esriFieldTypeString"&lt;BR /&gt;},&lt;BR /&gt;"valueObj": {&lt;BR /&gt;"value": ""&lt;BR /&gt;},&lt;BR /&gt;"prompt": "Enter First Name",&lt;BR /&gt;"textsearchhint": "John",&lt;BR /&gt;"sqltext": "Upper(LandRecTable_2023.OWNERNME1) LIKE Upper('%[value]%') OR Upper(LandRecTable_2023.OWNERNME2) LIKE Upper('%[value]%')",&lt;BR /&gt;"operation": "stringOperatorContains",&lt;BR /&gt;"operator": "AND"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;&lt;A href="https://manitowocmaps.info/arcgis/rest/services/Web_MercParBase_2023/MapServer/86" target="_blank" rel="noopener"&gt;https://manitowocmaps.info/arcgis/rest/services/Web_MercParBase_2023/MapServer/86&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 23:27:14 GMT</pubDate>
    <dc:creator>NormB</dc:creator>
    <dc:date>2023-06-11T23:27:14Z</dc:date>
    <item>
      <title>Search First and Last name, in Owner1 and Owner2 Fields</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/search-first-and-last-name-in-owner1-and-owner2/m-p/1297833#M14911</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have two fields&amp;nbsp; Owner1 and Owner2&amp;nbsp; that contain&amp;nbsp; concatenated First Name, middle initial, Last Name for owners in them. I have started to create a search that first allows the user to enter last name and first name into separate search boxes.&amp;nbsp; The code that I have created, I thought would narrow down the list by Last name and then reselect from that list where it finds first name to meet the criteria.&amp;nbsp; This is the code I have developed and I am looking for help that can guide me on how to create a search for a name like John&amp;nbsp; A Smith, or Mary Q Smith in Owner1 or Owner2 fields when the user enters John Smith or Mary Smith or any part that matches in either search box.&lt;/P&gt;&lt;P&gt;The rest endpoint for this service is also attached.&amp;nbsp; Thanks in advance for any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"alias": "Owner Name",&lt;BR /&gt;"textsearchlabel": "Search by Owner Name",&lt;BR /&gt;"values": {&lt;BR /&gt;"value": [&lt;BR /&gt;{&lt;BR /&gt;"fieldObj": {&lt;BR /&gt;"name": "LandRecTable_2023.OWNERNME1",&lt;BR /&gt;"label": "OwnerName",&lt;BR /&gt;"shortType": "string",&lt;BR /&gt;"type": "esriFieldTypeString"&lt;BR /&gt;},&lt;BR /&gt;"valueObj": {&lt;BR /&gt;"value": ""&lt;BR /&gt;},&lt;BR /&gt;"prompt": "Enter Last Name",&lt;BR /&gt;"textsearchhint": "Smith",&lt;BR /&gt;"sqltext": "Upper(LandRecTable_2023.OWNERNME1) LIKE Upper('%[value]%') OR Upper(LandRecTable_2023.OWNERNME2) LIKE Upper('%[value]%')",&lt;BR /&gt;"operation": "stringOperatorContains",&lt;BR /&gt;"operator": "AND"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"fieldObj": {&lt;BR /&gt;"name": "LandRecTable_2023.OWNERNME1",&lt;BR /&gt;"label": "OwnerName1",&lt;BR /&gt;"shortType": "string",&lt;BR /&gt;"type": "esriFieldTypeString"&lt;BR /&gt;},&lt;BR /&gt;"valueObj": {&lt;BR /&gt;"value": ""&lt;BR /&gt;},&lt;BR /&gt;"prompt": "Enter First Name",&lt;BR /&gt;"textsearchhint": "John",&lt;BR /&gt;"sqltext": "Upper(LandRecTable_2023.OWNERNME1) LIKE Upper('%[value]%') OR Upper(LandRecTable_2023.OWNERNME2) LIKE Upper('%[value]%')",&lt;BR /&gt;"operation": "stringOperatorContains",&lt;BR /&gt;"operator": "AND"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;------------&lt;/P&gt;&lt;P&gt;&lt;A href="https://manitowocmaps.info/arcgis/rest/services/Web_MercParBase_2023/MapServer/86" target="_blank" rel="noopener"&gt;https://manitowocmaps.info/arcgis/rest/services/Web_MercParBase_2023/MapServer/86&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 23:27:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/search-first-and-last-name-in-owner1-and-owner2/m-p/1297833#M14911</guid>
      <dc:creator>NormB</dc:creator>
      <dc:date>2023-06-11T23:27:14Z</dc:date>
    </item>
  </channel>
</rss>

