<?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 How to select and copy specific text from Infowindow to clipboard in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35481#M857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to select specific text from the Infowindow and copy it to clipboard. Right now I am able to copy entire window. But my requirement is to select specific string and copy it to clipboard. Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function onMapClick(event:MapMouseEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label = "Lat/Long: " + latlong.y.toFixed(6) + "/ " + latlong.x.toFixed(6);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.show(event.mapPoint);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;System.setClipboard(myMap.infoWindow.label);&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 15:09:11 GMT</pubDate>
    <dc:creator>ShravanBonagiri</dc:creator>
    <dc:date>2011-08-31T15:09:11Z</dc:date>
    <item>
      <title>How to select and copy specific text from Infowindow to clipboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35481#M857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to select specific text from the Infowindow and copy it to clipboard. Right now I am able to copy entire window. But my requirement is to select specific string and copy it to clipboard. Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function onMapClick(event:MapMouseEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label = "Lat/Long: " + latlong.y.toFixed(6) + "/ " + latlong.x.toFixed(6);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.show(event.mapPoint);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;System.setClipboard(myMap.infoWindow.label);&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 15:09:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35481#M857</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-08-31T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Is it possible to select and copy specific text from Infowindow to system clipboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35482#M858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am still looking for help with this problem. Have you guys had any work around solution for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I would like to select specific text from the Infowindow and copy it to clipboard. Right now I am able to copy entire window. But my requirement is to select specific string and copy it to clipboard. Any help would be appreciated.&lt;BR /&gt;Here is my code:&lt;BR /&gt;private function onMapClick(event:MapMouseEvent):void&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.label = "Lat/Long: " + latlong.y.toFixed(6) + "/ " + latlong.x.toFixed(6);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.infoWindow.show(event.mapPoint);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;System.setClipboard(myMap.infoWindow.label);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 16:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35482#M858</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-09-01T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to select and copy specific text from Infowindow to clipboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35483#M859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the specific string that you want to copy to your clipboard? The Lat and Long value?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 20:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35483#M859</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2011-09-13T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to select and copy specific text from Infowindow to clipboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35484#M860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What is the specific string that you want to copy to your clipboard? The Lat and Long value?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes! I want to copy Lat value separately and Long value separately, if possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 20:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35484#M860</guid>
      <dc:creator>ShravanBonagiri</dc:creator>
      <dc:date>2011-09-13T20:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to select and copy specific text from Infowindow to clipboard</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35485#M861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since you already have two values, you can simply use them and format the string to whatever you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.setClipboard(latlong.y.toFixed(6).toString() + "\n" + latlong.x.toFixed(6).toString());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, notepad does not support regular expressions, so you will have to paste it into a word doc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 21:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-select-and-copy-specific-text-from/m-p/35485#M861</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2011-09-13T21:04:16Z</dc:date>
    </item>
  </channel>
</rss>

