<?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: Customizing Layer List Widget &amp;quot;Description&amp;quot; to open in new browser tab? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012945#M20101</link>
    <description>&lt;P&gt;Rex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As I do not see this in any browsers, It means that it is time for you to contact esri tech support on this.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 16:44:14 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-12-30T16:44:14Z</dc:date>
    <item>
      <title>Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012035#M20092</link>
      <description>&lt;P&gt;Hello WABD gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have what I think is a fairly simple question that I'm hoping someone might be able to help with. Is it possible to force the layer list widget to open the "Description" of a layer (the REST endpoint of a given layer) in a new browser tab, rather than forcing the current browser window (where the web app is) to direct to the REST page? This behavior is a little jarring for users of our app, and they then have to hit "back" to return and reload the web app.&lt;/P&gt;&lt;P&gt;I've poked around in some of the Layer List widget config files but don't right off see where I could use something like window.open() method to force the new url to be opened in a new tab instead. Thank you as always for any help you can offer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012035#M20092</guid>
      <dc:creator>RexRobichaux</dc:creator>
      <dc:date>2020-12-23T14:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012372#M20095</link>
      <description>&lt;P&gt;Rex,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What version of WAB are you using? In 2.17 the default is to open in a new tab. You can see this in the code below from the PopupMenuInfo.js file in the LayerList widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    _getATagLabel: function() {
      var url;
      var label;
      var layerUrl = this._layerInfo.getUrl();
      var basicItemInfo = this._layerInfo.isItemLayer();
      if (basicItemInfo) {
        url = this._getItemDetailsPageUrl(basicItemInfo) || layerUrl;
        label = this.nls.itemShowItemDetails;
      } else if (layerUrl &amp;amp;&amp;amp;
        (this._layerType === "CSVLayer" || this._layerType === "KMLLayer")) {
        url = layerUrl;
        label = this.nls.itemDownload;
      } else if (layerUrl &amp;amp;&amp;amp; this._layerType === "WMSLayer") {
        url = layerUrl + (layerUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "SERVICE=WMS&amp;amp;REQUEST=GetCapabilities";
        label = this.nls.itemDesc;
      } else if (layerUrl &amp;amp;&amp;amp; this._layerType === "WFSLayer") {
        url = layerUrl + (layerUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "SERVICE=WFS&amp;amp;REQUEST=GetCapabilities";
        label = this.nls.itemDesc;
      } else if (layerUrl) {
        url = layerUrl;
        label = this.nls.itemDesc;
      } else {
        url = '';
        label = this.nls.itemDesc;
      }
      this._ATagLabelUrl = url;
      return '&amp;lt;a class="menu-item-description" target="_blank" href="' +
        url + '"&amp;gt;' + label + '&amp;lt;/a&amp;gt;';
    },&lt;/LI-CODE&gt;&lt;P&gt;The code that set the anchor element to a new tab is this&amp;nbsp;&lt;STRONG&gt;target="_blank"&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2020 22:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012372#M20095</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-26T22:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012878#M20097</link>
      <description>&lt;P&gt;Thanks Robert! Great question... I'm actually running 2.17, however IIRC the app in question was actually created in 2.15, and manually copied / imported into 2.17 so I'm betting that might be the issue. I'll peep into this code today and verify. Thanks again for your help and insight as always!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 14:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012878#M20097</guid>
      <dc:creator>RexRobichaux</dc:creator>
      <dc:date>2020-12-30T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012888#M20098</link>
      <description>&lt;P&gt;Well now I'm a little stumped and scratching my head on this one. I've checked the PopupMenuInfo.js file, and sure enough, for both apps where we are seeing the url forward vs new tab behavior, I see the code that (I was not expecting to see). Here's an extract from the file. Very strange. Any ideas? Thanks again for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    _getATagLabel: function() {
      var url;
      var label;
      var itemLayerId = this._layerInfo._isItemLayer &amp;amp;&amp;amp; this._layerInfo._isItemLayer();
      var layerUrl = this._layerInfo.getUrl();

      if (itemLayerId) {
        url = portalUrlUtils.getItemDetailsPageUrl(
                portalUrlUtils.getStandardPortalUrl(this.layerListWidget.appConfig.portalUrl),
                itemLayerId);
        label = this.nls.itemShowItemDetails;
      } else if (layerUrl &amp;amp;&amp;amp;
        (this._layerType === "CSVLayer" || this._layerType === "KMLLayer")) {
        url = layerUrl;
        label = this.nls.itemDownload;
      } else if (layerUrl &amp;amp;&amp;amp; this._layerType === "WMSLayer") {
        url = layerUrl + (layerUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "SERVICE=WMS&amp;amp;REQUEST=GetCapabilities";
        label = this.nls.itemDesc;
      } else if (layerUrl &amp;amp;&amp;amp; this._layerType === "WFSLayer") {
        url = layerUrl + (layerUrl.indexOf("?") &amp;gt; -1 ? "&amp;amp;" : "?") + "SERVICE=WFS&amp;amp;REQUEST=GetCapabilities";
        label = this.nls.itemDesc;
      } else if (layerUrl) {
        url = layerUrl;
        label = this.nls.itemDesc;
      } else {
        url = '';
        label = this.nls.itemDesc;
      }

      return '&amp;lt;a class="menu-item-description" target="_blank" href="' +
        url + '"&amp;gt;' + label + '&amp;lt;/a&amp;gt;';
    },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 14:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012888#M20098</guid>
      <dc:creator>RexRobichaux</dc:creator>
      <dc:date>2020-12-30T14:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012906#M20099</link>
      <description>&lt;P&gt;Have you tested in more than one browser (i.e. Chrome, IE, Edge, FireFox, etc)? Could be a browser setting issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012906#M20099</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-30T15:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012909#M20100</link>
      <description>&lt;P&gt;Hey Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yep I have. First browser tested was Firefox, then Chrome. Behavior is reproducible in both. I just tested IE and it's the same there as well.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 15:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012909#M20100</guid>
      <dc:creator>RexRobichaux</dc:creator>
      <dc:date>2020-12-30T15:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012945#M20101</link>
      <description>&lt;P&gt;Rex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As I do not see this in any browsers, It means that it is time for you to contact esri tech support on this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 16:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1012945#M20101</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-30T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Layer List Widget "Description" to open in new browser tab?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1013740#M20109</link>
      <description>&lt;P&gt;Thanks again for the help Robert. After further troubleshooting I've arrived at the same conclusion. I'll kick off a ticket and update this thread if we ever find the resolution / culprit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 20:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/customizing-layer-list-widget-quot-description/m-p/1013740#M20109</guid>
      <dc:creator>RexRobichaux</dc:creator>
      <dc:date>2021-01-04T20:39:08Z</dc:date>
    </item>
  </channel>
</rss>

