<?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: Selection Widget  - is this ported yet? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811436#M6510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, apparently the REST map services take SQL syntax. Operators encode to HTML character codes in the url of course. After playing with our ancient internal viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12/query?f=json&amp;amp;where=" rel="nofollow" target="_blank"&gt;http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12/query?f=json&amp;amp;where=&lt;/A&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;NAME%20LIKE%20'%25smith%25'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Works, and returns the geometry and attribs of features matching the name Smith in a layer, in this case layer 12 in our service, ServiceName.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Or for example if SALE_YY &amp;lt; '2013'&amp;nbsp; (less than for Sale Year field) in querying a parcel layer would be &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;&lt;A class="jive-link-external-small" href="http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12" rel="nofollow" target="_blank"&gt;http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12&lt;/A&gt;&lt;/SPAN&gt;/query?f=json&amp;amp;where=SALE_YY%20%3C%20'2013'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=* which works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Less than or equal is just &amp;lt;= but &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;%3C%3D in the url.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;To combine queries with AND ..&amp;nbsp; ...MapServer/243/query?f=json&amp;amp;where=SALE_YY%20%3C%3D%20'2013'%20and%20OBJECTID%20%3D%201&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;nbsp; Same goes for or and not terms, put them in the same place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Parentheses can be used as well --&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;/MapServer/243/query?f=json&amp;amp;where=SALE_YY%20%3C%3D%20'2013'%20%20not%20OBJECTID%20%3D%201%20or%20(OBJECTID%20%3E%2010%20and%20OBJECTID%20%3C%207)%20&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Would have thought there would be samples on JS API page but I did not see any. I gleaned this notion of working with REST more out of Silverlight API threads.&amp;nbsp; Like Identify this is a biggie that most advanced map sites have, would be a nice WAB widget. I will give creating this a try!&amp;nbsp;&amp;nbsp; Seems simple, just attaching this syntax into a Query, and using DOM inputs to form the query user interface. Hopefully then I will be able to display the table in the Attribute Table widget as a Results layer, and therefore be able to export to CSV too which is a site requirement here. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Time to start coding!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 18:54:27 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-05-20T18:54:27Z</dc:date>
    <item>
      <title>Selection Widget  - is this ported yet?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811432#M6506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/28047"&gt;Selection Widget Updated Version&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if this will be ported to Javascript - WebApp Builder? &lt;STRONG style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/people/rscheitlin"&gt;rscheitlin&lt;/A&gt; &lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/people/mhoyland"&gt;mhoyland&lt;/A&gt; ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 17:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811432#M6506</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Widget  - is this ported yet?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811433#M6507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have no plans to do so and I have not seen Mark post any code in a couple of years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811433#M6507</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-05T18:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Widget  - is this ported yet?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811434#M6508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, thank you for your reply.&amp;nbsp; I hope someone can port it, it is likely beyond my capabilities at this point, although at some point I may have to attempt it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It replicates the "Select by Attributes" tool in ArcGIS for anyone that hasn't used it.&amp;nbsp; This Flash widget let you build any query for anything, basically. Any layer, any field, and any operator. What would be even more neat is if when someone ports this, they add the ability to chain queries together. With AND, OR, and NOT operators!&amp;nbsp; We actually have something like this in an ancient viewer in-house (API 2.4) that I might be able to pull some business logic from but this would be way above my capacity at this point probably. I could share that code if it would help others though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I'm attempting to replicate this functionality with your eSearch Widget, by creating one by one a Query for each field in about a dozen layers.&amp;nbsp; It works great, although is requiring time to create. I did notice your nicely crafted JSON config file and have used that in Visual Studio to expedite this work a bit.&amp;nbsp; And to this end, I have put a reply in your eSearch widget thread with a question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811434#M6508</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T18:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Widget  - is this ported yet?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811435#M6509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/94828_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of our inhouse tool above.&amp;nbsp; It works. It uses some php and mysql and other weirdness to work, though, and upon further thought I do not think any coding patterns will translate into WAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what would be good to port to WAB (image of the Selection widget from Flash):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/94847_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But re-creating the actual ArcGIS Tool, pictured below, would ultimately be the best!&amp;nbsp; Put the FULL power of Select by both Attrib and Spatial from Desktop into WAB as a Widget.&amp;nbsp; I imagine it's all exposed through the API and just a matter of developing it.&amp;nbsp; This would make WAB phenomenally powerful.&amp;nbsp;&amp;nbsp;&amp;nbsp; Maybe ESRI should create this as a standard widget?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/94848_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811435#M6509</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-05T18:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Widget  - is this ported yet?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811436#M6510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, apparently the REST map services take SQL syntax. Operators encode to HTML character codes in the url of course. After playing with our ancient internal viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12/query?f=json&amp;amp;where=" rel="nofollow" target="_blank"&gt;http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12/query?f=json&amp;amp;where=&lt;/A&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;NAME%20LIKE%20'%25smith%25'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Works, and returns the geometry and attribs of features matching the name Smith in a layer, in this case layer 12 in our service, ServiceName.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Or for example if SALE_YY &amp;lt; '2013'&amp;nbsp; (less than for Sale Year field) in querying a parcel layer would be &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;&lt;A class="jive-link-external-small" href="http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12" rel="nofollow" target="_blank"&gt;http://YourService.com/ArcGIS/rest/services/ServiceName/Service1/MapServer/12&lt;/A&gt;&lt;/SPAN&gt;/query?f=json&amp;amp;where=SALE_YY%20%3C%20'2013'&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=* which works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Less than or equal is just &amp;lt;= but &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;%3C%3D in the url.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;To combine queries with AND ..&amp;nbsp; ...MapServer/243/query?f=json&amp;amp;where=SALE_YY%20%3C%3D%20'2013'%20and%20OBJECTID%20%3D%201&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;nbsp; Same goes for or and not terms, put them in the same place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Parentheses can be used as well --&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;/MapServer/243/query?f=json&amp;amp;where=SALE_YY%20%3C%3D%20'2013'%20%20not%20OBJECTID%20%3D%201%20or%20(OBJECTID%20%3E%2010%20and%20OBJECTID%20%3C%207)%20&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Would have thought there would be samples on JS API page but I did not see any. I gleaned this notion of working with REST more out of Silverlight API threads.&amp;nbsp; Like Identify this is a biggie that most advanced map sites have, would be a nice WAB widget. I will give creating this a try!&amp;nbsp;&amp;nbsp; Seems simple, just attaching this syntax into a Query, and using DOM inputs to form the query user interface. Hopefully then I will be able to display the table in the Attribute Table widget as a Results layer, and therefore be able to export to CSV too which is a site requirement here. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Time to start coding!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 18:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/selection-widget-is-this-ported-yet/m-p/811436#M6510</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-20T18:54:27Z</dc:date>
    </item>
  </channel>
</rss>

