<?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: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279208#M25764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Rolando,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; Is your widget opening?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 20:23:29 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-10-17T20:23:29Z</dc:date>
    <item>
      <title>Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279205#M25761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/people/rscheitlin"&gt;rscheitlin&lt;/A&gt;‌&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I need to ask you one more thing... The class&amp;nbsp;@XxxFeatureAction derive from&amp;nbsp;BaseFeatureAction.&lt;BR /&gt;Can you explain me about&amp;nbsp;isFeatureSupported and&amp;nbsp;onExecute function?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;How can I send data ( a&amp;nbsp;featureSet.fields.values() ) from this class to Widget.js.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This line make that:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;myWidget.showVertexCount(&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;featureSet.fields.values()&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;in Widget.js&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;showVertexCount: function(count){&lt;BR /&gt;this.vertexCount.innerHTML = 'The vertex count is: ' + count;&lt;BR /&gt;}&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;this&amp;nbsp;method&amp;nbsp;receives that information.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I've been&amp;nbsp;trying to print that but&amp;nbsp;it shows me null. I don't know why.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Do you understand me?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2016 02:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279205#M25761</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-15T02:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279206#M25762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;isFeatureSupported method is where you write your code to determine if this feature action should be available. So if you want your feature action to only be available for a specific layer then you would use the optional Layer parameter of that method to determine if you are working with the correct layer. The&amp;nbsp;&lt;SPAN&gt;isFeatureSupported has&amp;nbsp;FeatureSet property and an optional Layer property.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;As far as sending data back to a widget I would use a global var in your widget to pass the info. You mention that you are trying that already, but which out seeing your code I could not tell you what you are doing wrong (are you sure you have a true widget object as your myWidget var?).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279206#M25762</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279207#M25763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look Robert, I modified this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose&amp;nbsp;that &lt;STRONG&gt;this.widgetId&lt;/STRONG&gt; make reference to widget that I'm working (MyWidget). All this are in MyWidget folder&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;onExecute : function (featureSet) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; WidgetManager.getInstance().triggerWidgetOpen(this.widgetId)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; .then(function (myWidget) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var arrVal= featureSet.fields.values();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;myWidget.showVertexCount(arrVal);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; });&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that this function have to send arrVal variable to the showVertextCount function in&amp;nbsp;Widget.js. Or that's wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did it the same like Demo widget, that interacts with Select widget. (maybe I'm wrong)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279207#M25763</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-17T20:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279208#M25764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Rolando,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; Is your widget opening?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279208#M25764</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T20:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279209#M25765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&amp;nbsp;Robert, when I click in query button, must print &lt;STRONG&gt;arrVal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246879_cap1_1.png" style="width: 620px; height: 218px;" /&gt;&lt;/P&gt;&lt;P&gt;but, this is the result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246886_cap1_1.png" style="width: 620px; height: 82px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, arrVal is a global variable and _theLastTry runs when I click query button&amp;nbsp;(Widget.js)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246885_cap1_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 20:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279209#M25765</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-17T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279210#M25766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried putting a console.log(arrVal); in your&amp;nbsp;showVertexCount function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 21:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279210#M25766</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T21:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279211#M25767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I just did it, but it doesn't work.&lt;/P&gt;&lt;P&gt;Look, I&amp;nbsp;want to do this (but with&amp;nbsp;&lt;STRONG&gt;arrVal&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246902_cap1.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246903_cap1_1.png" style="width: 620px; height: 372px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any idea, It would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 21:29:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279211#M25767</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-17T21:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279212#M25768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Rolando,&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;So did the console print null for that console.log line?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279212#M25768</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T22:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279213#M25769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Robert, it prints null&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 23:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279213#M25769</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-17T23:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279214#M25770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your onExecute function have you checked the arrVal with s console statement before it is passed to the widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 23:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279214#M25770</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-17T23:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get the featureSet from XxxFeatureAction class to print (or use) it in Widget.js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279215#M25771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246987_cap1.png" style="width: 620px; height: 267px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right &lt;BR /&gt;the showVertextCount doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-the-featureset-from-xxxfeatureaction-class-to/m-p/279215#M25771</guid>
      <dc:creator>RolandoFlorez</dc:creator>
      <dc:date>2016-10-18T00:51:09Z</dc:date>
    </item>
  </channel>
</rss>

