<?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: Print webmap id to the console from a client browser session to a web mapping application in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662088#M17531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK then use:&lt;/P&gt;&lt;P&gt;window._viewerMap.itemId&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2019 15:53:28 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-06-04T15:53:28Z</dc:date>
    <item>
      <title>Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662085#M17528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;A _jive_internal="true" data-userid="3101" data-username="rscheitlin" href="https://community.esri.com/people/rscheitlin" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Robert Scheitlin, GISP&lt;/A&gt;&lt;SPAN style="color: #a9a9a9; background-color: #ffffff; font-weight: 500;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;IMG alt="Champion" class="" height="16" src="https://community.esri.com/resources/statics/rolebadges/roleBadge-4-1066-1422978816926.png" style="color: #a9a9a9; background-color: #ffffff; border: 0px; font-weight: 500; font-size: 12.5712px; margin: 0px 2px -3px -1px;" title="Champion" width="16" /&gt;,&lt;A href="https://community.esri.com/migrated-users/3856"&gt;Ken Buja&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;If I am in a client browser session to a web mapping application, say&amp;nbsp;&lt;A href="http://gis.wpb.org/PublicWorksGridViewer/"&gt;http://gis.wpb.org/PublicWorksGridViewer/&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;how would I print the webmap id to the console?&lt;/P&gt;&lt;P&gt;I was able to get it before, I just haven't remembered yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried variations of the following, and nothing works as of yet:&lt;/P&gt;&lt;P&gt;console.log(webMap.itemId)&lt;/P&gt;&lt;P&gt;console.log(map.itemId)&lt;/P&gt;&lt;P&gt;console.log(map.itemInfo)&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 15:36:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662085#M17528</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-05-31T15:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662086#M17529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If the code is inside a widget then it would be:&lt;/P&gt;&lt;P&gt;console.info(this.map.itemId);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 01:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662086#M17529</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-04T01:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662087#M17530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the web map id would be inside a widget, would it?&lt;/P&gt;&lt;P&gt;I would just want to find out the web map id that the web mapping application is using.&lt;/P&gt;&lt;P&gt;I want to do this from the client's console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 14:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662087#M17530</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-06-04T14:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662088#M17531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK then use:&lt;/P&gt;&lt;P&gt;window._viewerMap.itemId&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662088#M17531</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-04T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662089#M17532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert, although both&lt;/P&gt;&lt;P&gt;console.info(window._viewerMap.itemId);&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;console.log(window._viewerMap.itemId);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return 'undefined' to the console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662089#M17532</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-06-04T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662090#M17533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So I am confused then. If you want to do this from the clients console window then you are not inside any JS code and you would just type "&lt;SPAN style="background-color: #ffffff;"&gt;window._viewerMap.itemId" at the &amp;gt; prompt when you are in the console window. If you are adding this to some code inside the app then you would use console.log or console.info.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 18:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662090#M17533</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-04T18:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662091#M17534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see what you mean now.&lt;/P&gt;&lt;P&gt;It was me that didn't know not to put a console method call while inside of a clients' console.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you know to use the '_viewerMap' object?&lt;/P&gt;&lt;P&gt;Did you know it was named that way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking within the web application's source code files to see where and how the webMap object was defined and named, such as:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;require&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;"esri/WebMap"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

    &lt;SPAN class="string token"&gt;"esri/views/MapView"&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;WebMap&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MapView&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; map &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;WebMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
portalItem&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string 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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which JS file would I find that require esri/WebMap in?&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Also, How would I approach the application programmatically to find out where that required module lives?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to mark your answer as correct, but my original question is more focused to making a script that will loop through all the applications, and return the web map id's at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you answered this additional question in an awesome manner, would it be appropriate for me to branch it off as of my comment on&amp;nbsp;&lt;A _jive_internal="true" class="" href="https://community.esri.com/thread/214397-view-all-web-maps-being-consumed-by-all-web-mapping-applications?commentID=856368&amp;amp;et=watches.email.thread#comment" style="color: #8b8b8b; background-color: #ffffff; border: 0px; font-weight: 500; text-decoration: underline; font-size: 12.5712px;" target="_blank"&gt;May 31, 2019 4:51 PM&lt;/A&gt;, so that I could mark your reply as correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662091#M17534</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2021-12-12T03:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662092#M17535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;How did you know to use the '_viewerMap' object?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Previous development work on the Local Layer widget. In the MapManager.js it is set there:&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;window&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;_viewerMap&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Did you know it was named that way?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Same answer as above&lt;/P&gt;&lt;BLOCKQUOTE&gt;Also, which JS file would I find that require esri/WebMap in?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;No where. WebMap is not used in the code it is just Map.&amp;nbsp;&lt;/SPAN&gt;esri/arcgis/utils is used to get a Map class from a web map id.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Since you answered this additional question in an awesome manner, would it be appropriate for me to branch it off as of my comment on&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/214397-view-all-web-maps-being-consumed-by-all-web-mapping-applications?commentID=856368&amp;amp;et=watches.email.thread#comment-855646"&gt;May 31, 2019 4:51 PM&lt;/A&gt;, so that I could mark your reply as correct?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662092#M17535</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-05T13:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662093#M17536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have branched this discussion, and marked all your replies as helpful.&lt;/P&gt;&lt;P&gt;Unfortunately, the site is not giving me an option to mark your reply as correct.&lt;/P&gt;&lt;P&gt;Maybe this discussion's admin can chime in here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you expand on what '&lt;SPAN style="background-color: #ffffff;"&gt;esri/arcgis/utils' is?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Is it the utils.js file inside of jimu.js?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;If I were to attempt to search for a module in the code that was introduced via require, how would I approach the application in a programmatic way to find out in which file of the application that module lives?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662093#M17536</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-06-10T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662094#M17537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I notice why it won't let me mark it as correct.&lt;/P&gt;&lt;P&gt;Because when I branch, it only gives me the option to branch as 'discussion', not a new question.&lt;/P&gt;&lt;P&gt;If you want, I can create a brand new question, copy and paste all threads, let you reply to that, and mark your reply correct.&lt;/P&gt;&lt;P&gt;Unless you can provide a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also notice that on apps like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wpbgis.maps.arcgis.com/apps/Viewer/index.html?appid=3de4db80b6474e2f8069097d71560e8c"&gt;http://wpbgis.maps.arcgis.com/apps/Viewer/index.html?appid=3de4db80b6474e2f8069097d71560e8c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The "window._viewerMap.itemId" does not even exist.&lt;/P&gt;&lt;P&gt;Maybe because it is a different app template?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am in the wab dev configurator site, such as:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis-dev:3344/webappbuilder/?id=30"&gt;https://&amp;lt;machineName&amp;gt;/webappbuilder/?id=30&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The "&lt;/SPAN&gt;&lt;SPAN&gt;window._viewerMap.itemId" does not even exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know I can see the web map in the configurator's "more details" of the map tab, but&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do you recommend I go about finding the web map id from a client browser session in these cases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662094#M17537</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-06-10T12:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662095#M17538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am not an Admin in the "Enterprise GIS" GeoNet space that you have this question in. If you move this discussion to the &lt;A href="https://community.esri.com/space/2150"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;&amp;nbsp;space where it really should be then I can convert this discussion to a Question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the AGOL application you can get the webmap in the console using:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;webmap&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For a WAB app running in Node.js you can use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemId&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For a deployed WAB Developer app use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;window&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_viewerMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemId&lt;SPAN class="line-numbers-rows"&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;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/esri.arcgis.utils-amd.html"&gt;esri/arcgis/utils&lt;/A&gt; is a core JS API module that is used to create a map class out of a WebMap Id and has other methods.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662095#M17538</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-10T13:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662096#M17539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Robert, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I went ahead and moved the discussion to&amp;nbsp;&lt;SPAN&gt;the&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2055" data-containertype="14" data-objectid="2150" data-objecttype="14" href="https://community.esri.com/community/gis/web-gis/web-appbuilder" style="color: #287433; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;space, and I will mark your answer as correct when you convert it to a question.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;This is great that you told me how to find the webmap ID, yet i&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;f I were to attempt to do this myself:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;How would I find the webmap ID&amp;nbsp;&lt;SPAN&gt;in a programmatic manner, like you did?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;How would I search for a module in the app's code that was introduced via require (such as the esri/arcgis/utils module), in a programmatic manner to find out in which file of the application that module lives?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Why do you use 'this' for the AGOL and Node.js app, but&amp;nbsp;'window' for the deployed WAB app?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662096#M17539</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2019-06-11T12:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662097#M17540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &lt;SPAN style="background-color: #ffffff;"&gt;How would I find the webmap ID&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;in a programmatic manner, like you did?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A.&amp;nbsp; If you are in a Widget.js or the MapManager.js then you would just use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; mapId &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemId&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2. How would I search for a module in the app's code that was introduced via require (such as the esri/arcgis/utils module), in a programmatic manner to find out in which file of the application that module lives? I am not sure how to do that programatically...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 19:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662097#M17540</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-06-11T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662098#M17541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, do you have a recommended approach I can take to find the webmap item id for any given configurable app/custom JS API app/etc?&lt;/P&gt;&lt;P&gt;I ask, because I see that none of these options work when trying to find the web map id in those cases:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;config&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;webmap
&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;appConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemId
window&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;_viewerMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemId&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662098#M17541</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2021-12-12T03:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print webmap id to the console from a client browser session to a web mapping application</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662099#M17542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andres,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No all those are specific to WAB. I am not aware of any global var that the JS API uses to store the webmap id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-webmap-id-to-the-console-from-a-client/m-p/662099#M17542</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-02-28T15:50:39Z</dc:date>
    </item>
  </channel>
</rss>

