<?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: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516114#M14146</link>
    <description>&lt;P&gt;Hi Ken, thank you very much for your comments and analysis. I could solve the problem and you were right, I just changed the method and use a new way to access my layers according to ExB 1.10. Now my widget is working into my ExB App on my Portal.&lt;/P&gt;&lt;P&gt;Thanks for rise-up the idea to ESRI it would be very helpful to have this info on our hands.&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 14:37:50 GMT</pubDate>
    <dc:creator>DiegoSatian</dc:creator>
    <dc:date>2024-08-07T14:37:50Z</dc:date>
    <item>
      <title>getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514825#M14074</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I continue working in the development of custom widgets for Experience Builder and I would like to have some help with a problem that came up.&lt;/P&gt;&lt;P&gt;Basically, the custom widget will ask three different layers from a map widget on ExB App within Portal 11.1 to perform later some different actions. In the 'Setting' code, a Map Widget Selector is used to define the map source from which the layers will be taken. Meanwhile, into the 'Widget' code the JimuMapViewComponent is implemented to pass the selected Jimu Map View and perform a query selection of the features that intersect the map view extent.&lt;/P&gt;&lt;P&gt;The problem shows-up just when I deployed the widget into my ExB App into my Portal and it shows the message that can be seen in Image 1. But when I am working with the builder (development environment) this problem does not show-up and the query action is performed successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoSatian_0-1722846332829.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111568iD5F34F80EE8B6A51/image-size/large?v=v2&amp;amp;px=999" role="button" title="DiegoSatian_0-1722846332829.png" alt="DiegoSatian_0-1722846332829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Image 1.&lt;/STRONG&gt; Error showed by ExB App on Portal.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT size="3"&gt;Attached to this message please find the 'Settings' and 'Widget' scripts. I hope someone can help me or recommend me some sources where I can have a better understanding of this problem. I have searched the solution but I did not have luck with it.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT size="3"&gt;I am working with Experience Builder Developer 1.14 and publish the custom widget into ArcGIS Portal in Enterprise 11.1.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT size="3"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT size="3"&gt;Diego&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 08:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514825#M14074</guid>
      <dc:creator>DiegoSatian</dc:creator>
      <dc:date>2024-08-05T08:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514982#M14084</link>
      <description>&lt;P&gt;so I had to look up promiseUtils because I hadn't heard of that one.&amp;nbsp; Its defined over here in the&amp;nbsp;&lt;SPAN&gt;ArcGIS Maps SDK for JavaScript 4.2&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now (this appears to be a left over from the ArcMap JS API, which may or may not be deprecated I'm not sure)&lt;BR /&gt;&lt;BR /&gt;But it struck me as odd that Promise Layers does not appear to be labeled as Async, and I wondered if that could be part of what is going on here.&lt;BR /&gt;&lt;BR /&gt;You do use .then syntax with promiseUtils which is one of the ways to handle that, so I'm not sure, but I don't even know that its getting to promiseUtils because of the error on that method&lt;BR /&gt;&lt;BR /&gt;So I checked and it looks like getAllJimuLayerViews is there in EXB&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/experience-builder/api-reference/jimu-arcgis/JimuMapView/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/experience-builder/api-reference/jimu-arcgis/JimuMapView/&amp;nbsp; &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;and you do have that in the import for JimuMapView which it is on.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;You could try separating the mapview into a separate constant then try calling it, because I wonder if when called it is sometimes getting null.&amp;nbsp; and of course null would not have that method.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 14:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514982#M14084</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2024-08-05T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514986#M14085</link>
      <description>&lt;P&gt;Note that ArcGIS Enterprise 11.1 uses Experience Builder 1.10. Since the API Reference page only contains the current version, you'd have to &lt;A href="https://developers.arcgis.com/experience-builder/guide/downloads/" target="_self"&gt;download&lt;/A&gt; the documentation to see if the JimuMapView class contains the getAllJimuLayerViews method for that version.&lt;/P&gt;&lt;P&gt;**Update**&lt;/P&gt;&lt;P&gt;That method first shows up in the index.js file in D:\ExperienceBuilder\ArcGISExperienceBuilder_114\client\dist\jimu-arcgis. The method isn't found in previous versions. It would be quite helpful if they would include the version that classes and methods were introduced, like they do in the ArcGIS Maps SDK for JavaScript API reference. I've added as an &lt;A href="https://community.esri.com/t5/arcgis-experience-builder-ideas/add-version-history-to-classes-and-method-in-the/idi-p/1515015/jump-to/first-unread-message" target="_self"&gt;Idea&lt;/A&gt; for this.&lt;BR /&gt;&lt;IMG border="0" alt="" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 15:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1514986#M14085</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-08-05T15:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516111#M14145</link>
      <description>&lt;P&gt;Hi Tim, thanks for your comments and ideas.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":vulcan_salute:"&gt;🖖&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516111#M14145</guid>
      <dc:creator>DiegoSatian</dc:creator>
      <dc:date>2024-08-07T14:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516114#M14146</link>
      <description>&lt;P&gt;Hi Ken, thank you very much for your comments and analysis. I could solve the problem and you were right, I just changed the method and use a new way to access my layers according to ExB 1.10. Now my widget is working into my ExB App on my Portal.&lt;/P&gt;&lt;P&gt;Thanks for rise-up the idea to ESRI it would be very helpful to have this info on our hands.&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516114#M14146</guid>
      <dc:creator>DiegoSatian</dc:creator>
      <dc:date>2024-08-07T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516126#M14147</link>
      <description>&lt;P&gt;Yeah Ideally they should have notes for:&lt;BR /&gt;&lt;BR /&gt;What version it was added in, and if its retired what was the last version it was in.&lt;BR /&gt;&lt;BR /&gt;I would find this particularly confusing, if I'd had a lot more WebApp Builder experience with the older JS APIs before Experience Builder, as EXB is still not a 1 to 1 comparison in terms of available features in some respectes.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516126#M14147</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2024-08-07T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: getAllJimuLayerViews() method not recognize in Experience Builder App on Portal</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516133#M14148</link>
      <description>&lt;P&gt;If you like the idea, please Kudo it so it gets more visibility and a higher priority for fixing.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 15:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/getalljimulayerviews-method-not-recognize-in/m-p/1516133#M14148</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-08-07T15:01:49Z</dc:date>
    </item>
  </channel>
</rss>

