<?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: LayerList widget - description button in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596242#M17086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vincent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; It might be possible but as the layers in the main config.xml can be individual layer (feature type) or mapservices (dynamic type) which would contain many layers, this would not work well. It would also involve changing/adding code to many file in the viewer and is to in depth for me to help with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You do have access to the layer from the descriptionOrDownloadLabel function and could use the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/Layer.html#copyright"&gt;copyright&lt;/A&gt;&lt;SPAN&gt; property to hold the url you want to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 12:20:55 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-11-05T12:20:55Z</dc:date>
    <item>
      <title>LayerList widget - description button</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596238#M17082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; is it possible to configure the description button of the LayerListWidget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I want, for all my layers, to make links toward HTML pages that describe the layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I don't wanted to be redirected on the REST services directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; (my config : AGS 10.1 - flex 3.0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 10:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596238#M17082</guid>
      <dc:creator>PEREZvincent</dc:creator>
      <dc:date>2013-07-30T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList widget - description button</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596239#M17083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vincent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; That is not a currently supported configurable option. It is easy to change in the &lt;/SPAN&gt;&lt;STRONG&gt;code &lt;/STRONG&gt;&lt;SPAN&gt;(not xml) if you have access to the source code and a Flex IDE like Flash Builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would make your changes in the:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function descriptionOrDownloadLabel_clickHandler is what gets called when you click the description button:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;src/com/esri/viewer/components/toc/tocClasses/TocLayerMenu.mxml&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596239#M17083</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-07-30T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList widget - description button</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596240#M17084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok thank you Robert.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have Flash builder and I don't speak flex...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll see if I can learn it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596240#M17084</guid>
      <dc:creator>PEREZvincent</dc:creator>
      <dc:date>2013-07-30T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList widget - description button</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596241#M17085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, as said Robert, I solved my problem by modifying the contents of the descriptionOrDownloadLabel function by :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var request:URLRequest = new URLRequest("http://xxx");
navigateToURL(request, "_blank");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It work fine. But users are redirect toward the same html page&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I would like to redirect the users towards differents metadatas (1 layer =&amp;gt; 1 html page).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to include a new XML tag in the main config file (for each operationallayers) and call this XML tag in the descriptionOrDownloadLabel function of the tocLayermenu.mxml ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596241#M17085</guid>
      <dc:creator>PEREZvincent</dc:creator>
      <dc:date>2021-12-12T01:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList widget - description button</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596242#M17086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vincent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; It might be possible but as the layers in the main config.xml can be individual layer (feature type) or mapservices (dynamic type) which would contain many layers, this would not work well. It would also involve changing/adding code to many file in the viewer and is to in depth for me to help with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You do have access to the layer from the descriptionOrDownloadLabel function and could use the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/Layer.html#copyright"&gt;copyright&lt;/A&gt;&lt;SPAN&gt; property to hold the url you want to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 12:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/layerlist-widget-description-button/m-p/596242#M17086</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-11-05T12:20:55Z</dc:date>
    </item>
  </channel>
</rss>

