<?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: WAB BatchAttr.Editor: featureLayerObject.selectFeatures NOT firing query in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673262#M17763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Robert,&lt;/P&gt;&lt;P&gt;it seems to do just that if draw-tool is "extent" (rectangle).&lt;/P&gt;&lt;P&gt;However I have solved in this way. I transformed extent parameter in a polygon and it returns to work in the usual way.&lt;/P&gt;&lt;PRE style="color: #ebebeb; background-color: #131314; font-size: 8,4pt;"&gt;&lt;SPAN style="color: #ed864a;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;extentPolygon &lt;/SPAN&gt;= esri.&lt;SPAN style="color: #ed94ff;"&gt;geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;Polygon&lt;/SPAN&gt;.fromExtent(&lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;)&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Gianni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2019 13:40:32 GMT</pubDate>
    <dc:creator>GianniContino</dc:creator>
    <dc:date>2019-03-12T13:40:32Z</dc:date>
    <item>
      <title>WAB BatchAttr.Editor: featureLayerObject.selectFeatures NOT firing query</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673260#M17761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm experiencing an issue with&amp;nbsp;the&amp;nbsp;widget BatchAttributeEditor of WAB:&lt;/P&gt;&lt;P&gt;It connects to a featureLayer (from an ArcGIS server), and at the end of drawing shape (or point) it&amp;nbsp;should fire the query to the service, in order to select features of a query (c variable).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #ffcf40;"&gt;_selectSearchLayer&lt;/SPAN&gt;: &lt;SPAN style="color: #ed864a;"&gt;function &lt;/SPAN&gt;(&lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;) { &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;// a is the shape of selection&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #ed864a;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;c &lt;/SPAN&gt;= &lt;SPAN style="color: #ed864a;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;U&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;; // U is esri/query Object
&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #ed864a;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #54b33e;"&gt;"point" &lt;/SPAN&gt;=== &lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;type &lt;/SPAN&gt;|| &lt;SPAN style="color: #54b33e;"&gt;"polyline" &lt;/SPAN&gt;=== &lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;type&lt;/SPAN&gt;) {
      &lt;SPAN style="color: #ed864a;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;d &lt;/SPAN&gt;= &lt;SPAN style="color: #ffffff;"&gt;ea&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;getUnitValueForSR&lt;/SPAN&gt;(&lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;map&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;spatialReference&lt;/SPAN&gt;)&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;      &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;c&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;geometry &lt;/SPAN&gt;= &lt;SPAN style="color: #ffffff;"&gt;da&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;buffer&lt;/SPAN&gt;(&lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #33ccff; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;d&lt;/SPAN&gt;)
   } &lt;SPAN style="color: #ed864a;"&gt;else &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;c&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;geometry &lt;/SPAN&gt;= &lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #54b33e;"&gt;"FeatureQuery" &lt;/SPAN&gt;=== &lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;toolType &lt;/SPAN&gt;&amp;amp;&amp;amp; (&lt;SPAN style="color: #ffffff;"&gt;c&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;outFields &lt;/SPAN&gt;= [&lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;config&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;selectByLayer&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;queryField&lt;/SPAN&gt;])&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;c&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;spatialRelationship &lt;/SPAN&gt;= &lt;SPAN style="color: #ffffff;"&gt;U&lt;/SPAN&gt;.SPATIAL_REL_INTERSECTS&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;   &lt;/SPAN&gt;&lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;selectByLayer&lt;/SPAN&gt;.&lt;SPAN style="color: #ed94ff;"&gt;layerObject&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;selectFeatures&lt;/SPAN&gt;(&lt;SPAN style="color: #ffffff;"&gt;c&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;W&lt;/SPAN&gt;.SELECTION_NEW)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.&lt;SPAN style="color: #ffcf40;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #ffffff;"&gt;b&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;hitch&lt;/SPAN&gt;(&lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ed864a;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;_searchByLayerComplete&lt;/SPAN&gt;)) &lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;// b.hitch is lang.hitch&lt;/SPAN&gt;
}&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;When I use the point draw-tool it works,&lt;/P&gt;&lt;P&gt;when I use extent draw-tool instead, it selects features WITHOUT firing query.&lt;/P&gt;&lt;P&gt;It's very strange: I don't find the query in network console of browser, but if I draw an extent around features it selects correctly features, but without querying the service.&lt;BR /&gt;Could it be a matter of data-caching?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gianni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673260#M17761</guid>
      <dc:creator>GianniContino</dc:creator>
      <dc:date>2021-12-12T04:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: WAB BatchAttr.Editor: featureLayerObject.selectFeatures NOT firing query</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673261#M17762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Gianni,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;It is likely doing the work clientside for&amp;nbsp;rectangles&amp;nbsp;and polygons. A FeatureLayer will attempt to do work on the client if possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673261#M17762</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-12T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: WAB BatchAttr.Editor: featureLayerObject.selectFeatures NOT firing query</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673262#M17763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Robert,&lt;/P&gt;&lt;P&gt;it seems to do just that if draw-tool is "extent" (rectangle).&lt;/P&gt;&lt;P&gt;However I have solved in this way. I transformed extent parameter in a polygon and it returns to work in the usual way.&lt;/P&gt;&lt;PRE style="color: #ebebeb; background-color: #131314; font-size: 8,4pt;"&gt;&lt;SPAN style="color: #ed864a;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #ffffff;"&gt;extentPolygon &lt;/SPAN&gt;= esri.&lt;SPAN style="color: #ed94ff;"&gt;geometry&lt;/SPAN&gt;.&lt;SPAN style="color: #ffcf40;"&gt;Polygon&lt;/SPAN&gt;.fromExtent(&lt;SPAN style="color: #ffffff;"&gt;a&lt;/SPAN&gt;)&lt;SPAN style="color: #ed864a; font-weight: bold;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Gianni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 13:40:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-batchattr-editor-featurelayerobject/m-p/673262#M17763</guid>
      <dc:creator>GianniContino</dc:creator>
      <dc:date>2019-03-12T13:40:32Z</dc:date>
    </item>
  </channel>
</rss>

