<?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: HTML Link from a shape file in &amp;quot;Label&amp;quot; inside &amp;quot;Component in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19508#M450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Deyan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;mx:Component className="MyInfoWindowRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:VBox label="�?úáèòèÿ" backgroundColor="0xEEEEEE"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="State Fips: {data.Descriptio}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="Abbreviation: {data.Where_}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="Abbreviation: {data.Info}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label click="navigateToURL(new URLRequest('{data.Photos}'), '_blank');" htmlText="Abbreviation: &amp;lt;u&amp;gt;{data.Photos}&amp;lt;/u&amp;gt;"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
&amp;lt;/mx:Component&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:46:42 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-10T20:46:42Z</dc:date>
    <item>
      <title>HTML Link from a shape file in &amp;quot;Label&amp;quot; inside &amp;quot;Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19505#M447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are doing a layer in which you have some activities around town loaded in a shape file in SDE database. This layer is in a Flex application and when you put your mouse over and click an infoWindowRenderer pops up to dislpay an activity. The last field in this shape file is a HTML link to a picture on the server of the client and we need to make that link clickable or dislay the picture in the pop-up window. I tried to chande text to htmlText but that didn't work. I only managed to make the field available for copying the text with selectable="true". Can somebody share a way to make that link possible for clicking?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attacing the code in a txt file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deyan Kiryazov&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 11:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19505#M447</guid>
      <dc:creator>varnavarna</dc:creator>
      <dc:date>2010-07-16T11:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19506#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;myText.htmlText = "How about &amp;lt;u&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://links.esri.com/flex" rel="nofollow" target="_blank"&gt;http://links.esri.com/flex&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/u&amp;gt;?";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See example in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=SpatialRelationships"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=SpatialRelationships&lt;/A&gt;&lt;SPAN&gt; using htmlText on mx:Text.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 14:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19506#M448</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2010-07-16T14:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19507#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bjorn, thank you for your reply. But the solution you provided is for a html link entered in the code of the Flex application. In our case the URLs are in a field in a layer on the Dynamic Map Service that the application is using. This way our client can add entries to the layer in the hosted .mxd and they will show up on the map in the Flex app. I need a way to make a certain field of the info pop-up window to be seen as an html link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this thread has something similar --&amp;gt; &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=292186&amp;amp;mc=3"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=292186&amp;amp;mc=3&lt;/A&gt;&lt;SPAN&gt; , but the Query here populates a DataGrid and I am struggling to get it working with infoWindowRenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deyan Kiryazov&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 08:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19507#M449</guid>
      <dc:creator>varnavarna</dc:creator>
      <dc:date>2010-07-19T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19508#M450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Deyan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;mx:Component className="MyInfoWindowRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:VBox label="�?úáèòèÿ" backgroundColor="0xEEEEEE"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="State Fips: {data.Descriptio}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="Abbreviation: {data.Where_}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text="Abbreviation: {data.Info}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label click="navigateToURL(new URLRequest('{data.Photos}'), '_blank');" htmlText="Abbreviation: &amp;lt;u&amp;gt;{data.Photos}&amp;lt;/u&amp;gt;"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:VBox&amp;gt;
&amp;lt;/mx:Component&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19508#M450</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T20:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19509#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, I changed the code as you suggested. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Label click="navigateToURL(new URLRequest('{data.Photos}'), '_blank');" htmlText="Abbreviation: {data.Photos}"/&amp;gt;&amp;nbsp; (only removed the &amp;lt;u&amp;gt; tag because I was getting an error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the last line changed like that, the link is now clickable but it leads to ...Flex project folder.../bin-debug/%7Bdata.Photos%7D. When I cnahge&amp;nbsp; " URLRequest('{data.Photos}') " to a HTML link to the pictures directory or one of the pictures it opens the address. I guess the problem is that when it's done this way it is not reading from the field in the layer of the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;htmlText="Abbreviation: {data.Photos}" is leading to the right address because it's getting its data from the layer in the REST service but the other {data.Photos} is recognized just as a text for a link I guess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my English but I'm trying to explain it with as much detail as I can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the replies!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deyan Kiryazov&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 09:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19509#M451</guid>
      <dc:creator>varnavarna</dc:creator>
      <dc:date>2010-07-20T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19510#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Deyan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; OK I see my mistake try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;mx:Label click="navigateToURL(new URLRequest(data.Photos), '_blank');" htmlText="Abbreviation: {data.Photos}"/&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 11:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19510#M452</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-07-20T11:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: HTML Link from a shape file in "Label" inside "Component</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19511#M453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, with this correction it worked like a charm!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help! You saved me a lot of time and nerves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deyan Kiryazov&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 05:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/html-link-from-a-shape-file-in-amp-quot-label-amp/m-p/19511#M453</guid>
      <dc:creator>varnavarna</dc:creator>
      <dc:date>2010-07-21T05:35:26Z</dc:date>
    </item>
  </channel>
</rss>

