<?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: Use Selection From Select Widget in Web AppBuilder in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341083#M2196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahad,&lt;/P&gt;&lt;P&gt;You could try something like this...&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer = layer.layerObject;
if(featureLayer.geometryType === '&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;polyline&lt;/SPAN&gt;') {
    ...
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#geometryType" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#geometryType" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | ArcGIS API for JavaScript 4.17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:07:24 GMT</pubDate>
    <dc:creator>GrantTaylor2</dc:creator>
    <dc:date>2021-12-11T16:07:24Z</dc:date>
    <item>
      <title>Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341074#M2187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible, and if so how do I use a selection set I've made with the Select Widget with another custom developed widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 20:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341074#M2187</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2018-01-26T20:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341075#M2188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the answer I was looking for. That will teach me to read the documentation properly in future &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var count = 0;&lt;/P&gt;&lt;P&gt;array.forEach(this.map.itemInfo.itemData.operationalLayers, function (layer) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;var featureLayer = layer.layerObject;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;count += featureLayer.getSelectedFeatures().length;&lt;/P&gt;&lt;P&gt;}, this);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341075#M2188</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2018-01-29T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341076#M2189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there i'm also facing this issue can you please elaborate the solution?&amp;nbsp;&lt;BR /&gt;i'm looking to get OIDs of features selected through select widget.&lt;BR /&gt;any sort of help / pointers will be appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2020 05:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341076#M2189</guid>
      <dc:creator>fahadrasheed</dc:creator>
      <dc:date>2020-10-16T05:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341077#M2190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fahad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the name of the Id field by calling the objectidField method on a featureLayer.&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;if you call the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;getSelectedFeatures on a&amp;nbsp;&lt;SPAN&gt;featureLayer&lt;/SPAN&gt;&amp;nbsp;you will get an array of Graphic objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Use the objectidField name&amp;nbsp;to get the Id of the feature (&lt;SPAN&gt;Graphic&lt;/SPAN&gt;) from its attributes array.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var ids = [];
array.forEach(this.map.itemInfo.itemData.operationalLayers, function (layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;var featureLayer = layer.layerObject;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;array.forEach(featureLayer.getSelectedFeatures(), function (feature) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ids.push(feature.attributes[featureLayer.objectIdField]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}, this);
}, this);&lt;SPAN class="" style="color: #666600;"&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I think that is the gist of it. Apologies my javascript is a bit rusty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;These may help:&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/query_buffer.html" title="https://developers.arcgis.com/javascript/3/jssamples/query_buffer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Select with Feature Layer | ArcGIS API for JavaScript 3.34&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Graphic | API Reference | ArcGIS API for JavaScript 3.34&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.34&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341077#M2190</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2021-12-11T16:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341078#M2191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grant,&lt;/P&gt;&lt;P&gt;Thank you for your kind reply. I have a simple widget in which a button in defined and on clicking the button i'm trying to define a function which will store OIDs of selected feature in a variable which i then pass on to some non esri webapps to preform some task.&amp;nbsp;&lt;BR /&gt;I have tried to apply your code in the function i defined for my button but it throws back an error "Uncaught reference error: array is no defined", as i'm also new in javascript i have no idea what i'm doing wrong here. I'll attach the picture of code that i have and it'll a great help if can take a look and can point out what is wrong with this code that i'm trying out.&amp;nbsp;&lt;IMG alt="Code picture" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/511222_array error.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 05:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341078#M2191</guid>
      <dc:creator>fahadrasheed</dc:creator>
      <dc:date>2020-10-19T05:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341079#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Fahad,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You will need to add the array module to the define at the top of your code and also as a parameter to the function, see below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;define&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'dojo/_base/declare'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;'jimu/BaseWidget'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;'dojo/_base/array'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="string token"&gt;'esri/layers/FeatureLayer'&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;declare&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; BaseWidget&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; array&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://dojotoolkit.org/reference-guide/1.10/dojo/_base/array.html" title="https://dojotoolkit.org/reference-guide/1.10/dojo/_base/array.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://dojotoolkit.org/reference-guide/1.10/dojo/_base/array.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341079#M2192</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2021-12-11T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341080#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your reply, I applied the changes as you guided in above comment but now it throw back a different sort of error "uncaught TypeError : array.forEach is not a function".&lt;BR /&gt;i read the dojo documentation about dojo/_base/array but i can not see what is wrong in this script. On removing array.forEach ids variable generate empty output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG __jive_id="511232" alt="error2" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/511232_array error.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341080#M2193</guid>
      <dc:creator>fahadrasheed</dc:creator>
      <dc:date>2020-10-19T08:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341081#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fahad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try putting the items in the function definition in the same order as they are in the&amp;nbsp;declare array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;define&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;'dojo/_base/declare'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;'jimu/BaseWidget'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;'dojo/_base/array'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;        'dojo/dom'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;'esri/map',
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;        'esri/layers/layer',
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;        'esri/graphic'&lt;/SPAN&gt;&lt;/CODE&gt;
&lt;CODE&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;declare&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; BaseWidget&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; array&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341081#M2194</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2021-12-11T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341082#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grant,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally it worked Thanks a lot.&lt;/P&gt;&lt;P&gt;One more question, what if the featurelayer i'm using in my web app has multiple featureclasses i.e. some different sort of point features and some line features, how can i limit the return of OID to only the feature which i want not others which may also get selected due to they overlay on each other.&lt;/P&gt;&lt;P&gt;Thank you Again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2020 08:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341082#M2195</guid>
      <dc:creator>fahadrasheed</dc:creator>
      <dc:date>2020-10-19T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use Selection From Select Widget in Web AppBuilder</title>
      <link>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341083#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fahad,&lt;/P&gt;&lt;P&gt;You could try something like this...&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer = layer.layerObject;
if(featureLayer.geometryType === '&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;polyline&lt;/SPAN&gt;') {
    ...
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#geometryType" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#geometryType" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer | ArcGIS API for JavaScript 4.17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:07:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-selection-from-select-widget-in-web-appbuilder/m-p/341083#M2196</guid>
      <dc:creator>GrantTaylor2</dc:creator>
      <dc:date>2021-12-11T16:07:24Z</dc:date>
    </item>
  </channel>
</rss>

