<?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: how to Add attachment in flex viewer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667711#M15023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evelyn,&lt;/P&gt;&lt;P&gt;I am not clear about your question but for deleting an attachment you can use the same example i gave sent&lt;/P&gt;&lt;P&gt;just instead of the featureLayer.addAttachments method you call the featureLayer.deleteAttachments method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as querying an attachment is concerned you can use the &lt;/P&gt;&lt;P&gt;queryAttachmentinfos(objectid,new AsyncResponder(onResult,onFault));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function onResult(event:AttachmentEvent,token:object=null):void{&lt;/P&gt;&lt;P&gt; var arry:Array = event.&lt;A class="signatureLink" href="https://developers.arcgis.com/flex/api-reference/com/esri/ags/events/AttachmentEvent.html#attachmentInfos"&gt;attachmentInfos&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attachmentInfo:Attachmentinfo = arry[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var imageUrl:String = attachmentInfo.url;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function onFault(event:FaultEvent,token:object=null):void{}&lt;/P&gt;&lt;P&gt;the onResult event of type AttachmentEvent will have an attachmentInfos array.. pick each attacment from the array an place it into a attachmentinfo object. attahment info has a property url which gives you the entire url of the attachment for you to download or view.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 18:16:08 GMT</pubDate>
    <dc:creator>NigelDsouza</dc:creator>
    <dc:date>2015-05-22T18:16:08Z</dc:date>
    <item>
      <title>About attachments in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667689#M15001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing an app that needs to add an attachment (pdf file) and save it in the arcgis db. Anyone knows how to do that?&lt;/P&gt;&lt;P&gt;My rest service has the attachment value in True, but idk why this code doesnt do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is part of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;myPropLayer.url = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #990000;"&gt;"myfeaturelayerurl"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; myPropLayer.id = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #990000;"&gt;"NewEtaFeature"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp; myPropLayer.addAttachment(1,byteArrayToProcess,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #990000;"&gt;"ElemetopPDF"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #990000;"&gt;"pdf"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #0033ff;"&gt;new&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; AsyncResponder(resultado,malresultado));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; resultado():&lt;/SPAN&gt;&lt;SPAN style="color: #0033ff; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Alert.show(&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;"saved"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; malresultado():&lt;/SPAN&gt;&lt;SPAN style="color: #0033ff; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Alert.show(&lt;/SPAN&gt;&lt;SPAN style="color: #990000; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;"not saved"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mensaje editado por: Evelyn Hernandez. new Question about attachments&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 18:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667689#M15001</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-04-21T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667690#M15002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evelyn,&lt;/P&gt;&lt;P&gt;Your need to provide a valid objectid when you add attachments.&lt;/P&gt;&lt;P&gt;What error are your getting?&lt;/P&gt;&lt;P&gt;Also your &lt;SPAN style="color: #000000; font-family: Consolas; font-size: 13.3333330154419px;"&gt;resultado() and &lt;SPAN style="color: #000000; font-family: Consolas; font-size: 13.3333330154419px;"&gt;malresultado() methods need to have events passed as parameter which seems to be missing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 08:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667690#M15002</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-04-23T08:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667691#M15003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do u have any example where u&amp;nbsp; do that ?&lt;/P&gt;&lt;P&gt;It will be useful&amp;nbsp; for me &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 18:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667691#M15003</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-04-23T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667692#M15004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evelyn,&lt;/P&gt;&lt;P&gt;Just correct your code with the following and see if it works.&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Consolas; font-size: 13.3333330154419px;"&gt;resultado(&lt;CODE&gt;event:AttachmentEvent&lt;/CODE&gt;) and &lt;SPAN style="color: #000000; font-family: Consolas; font-size: 13.3333330154419px;"&gt;malresultado(fault:FaultEvent).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667692#M15004</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-04-24T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667693#M15005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u have any complete example using that? I already read the sample in the developers webpage but idk why it doesnt work for me. Im not using the attachment inspector object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 12:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667693#M15005</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-04-27T12:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667694#M15006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some help, im stuck on this.&lt;/P&gt;&lt;P&gt;I have to save a pdf file or image file in the arcgis db and idk how to do it through a widget. Theres no code example to try and seems nobody has done yet.&lt;/P&gt;&lt;P&gt;I have been trying with the attch inspector but it doesnt work. Anyone can give any example ?&lt;/P&gt;&lt;P&gt;Thanks for ur help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this code but it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public function savePDF(byteArr:ByteArray):void
&amp;nbsp; {
&amp;nbsp; 
&amp;nbsp; var myfeaturelayer:FeatureLayer = new FeatureLayer;
&amp;nbsp; myfeaturelayer.url = "http:...../PMGD/FeatureServer/8";

&amp;nbsp; myfeaturelayer.id = "NewEtaFeature";
&amp;nbsp; 
&amp;nbsp; myfeaturelayer.addAttachment(1,byteArr,"ElementoPDF", null,new AsyncResponder(resultado,malresultado));


&amp;nbsp; function resultado(event:AttachmentEvent):void{
&amp;nbsp; Alert.show("saved");

&amp;nbsp; }
&amp;nbsp; function malresultado(fault:FaultEvent):void{
&amp;nbsp; Alert.show("not saved");
&amp;nbsp; }


&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667694#M15006</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2021-12-12T04:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667695#M15007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you debug this code what error do you get? Also check if your feature service has attachments enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 01:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667695#M15007</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-05T01:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667696#M15008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cannot debug my app, so when i execute the code i dont get any responde (not true or false)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667696#M15008</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-05T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667697#M15009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything seems to be fine with the code you have written. you can also check the "layer details" property of&lt;/P&gt;&lt;P&gt;the feature layer to check whether attachments have been enabled on your featurelayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerDetails:LayerDetails = myfeaturelayer.layerDetails&lt;/P&gt;&lt;P&gt;if(layerDetails.&lt;A class="signatureLink" href="https://developers.arcgis.com/flex/api-reference/com/esri/ags/layers/supportClasses/LayerDetails.html#hasAttachments"&gt;hasAttachments&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("attachments enabled");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; savePDF(byteArr);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Please enable attachments");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing is, you could try passing the "content type" as a parameter instead of passing null..&lt;/P&gt;&lt;P&gt;&amp;nbsp; myfeaturelayer.addAttachment(1,byteArr,"ElementoPDF", "pdf",new AsyncResponder(resultado,malresultado)); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And like i said earlier you need to pass a valid object_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's a small tip for to get your debugger working.&lt;/P&gt;&lt;P&gt;Assuming that you are working with flash builder it is necessary that the debugger version installed is the same as the version of flash player in your browser.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First check the version of flash player running your browser. Navigate to the following link to check the version &lt;A href="https://helpx.adobe.com/flash-player.html" title="https://helpx.adobe.com/flash-player.html"&gt;Flash Player Help&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if it is an outdated version I recommend you update it.&lt;/P&gt;&lt;P&gt;2. Once you've got your flash player version updated/installed navigate to the following link to download the debugger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://www.adobe.com/support/flashplayer/downloads.html" title="https://www.adobe.com/support/flashplayer/downloads.html"&gt;Adobe Flash Player - Downloads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Select the appropriate debugger and click install.&lt;/P&gt;&lt;P&gt;3. Then insert some breakpoints,run your app in debug mode and i think your off.. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually its really hard to suggest any solution cause your code seems fine... i guess through a debug session you might be able to track some errors..or maybe some section of code that isnt getting called.. hence the expected output is void.&lt;/P&gt;&lt;P&gt;Hope this helps.. do get back,...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 17:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667697#M15009</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-05T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667698#M15010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code that u send me doesnt do anything, but in my rest srv i have the has attachment in true.&lt;/P&gt;&lt;P&gt;Im downloading the debugger.&lt;/P&gt;&lt;P&gt;And i also tried putting the "PDF" in the content type but still doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idk what more i should do... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 18:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667698#M15010</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-05T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667699#M15011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the debugger work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 02:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667699#M15011</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-06T02:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667700#M15012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I installed it and fb still doesnt recognize me the debugger.&lt;/P&gt;&lt;P&gt;It tries to make the connection and got an error with the following msg: "Flash builder cannot locate the requited debugger version of adobe flash player....."&lt;/P&gt;&lt;P&gt;I put that i want to try the debug with the current version and it tries to load the app but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i think if anyone can provide me any working example using attachment for PFD and any file will be better,,, (W/o using the attachment inspector)&lt;/P&gt;&lt;P&gt;Thanks for all ur help as always. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667700#M15012</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-06T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667701#M15013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the flash player version and the debugger version you installed isn't the same.&lt;/P&gt;&lt;P&gt;For example if you debug in IE and the flash player version is 17 then the debugger exe should be something like&lt;/P&gt;&lt;P&gt;"flashplayer_17_ax_debug.exe" and the link would be something like "&lt;A href="http://download.macromedia.com/pub/flashplayer/updaters/17/flashplayer_17_ax_debug.exe"&gt;Download the Flash Player content debugger for Internet Explorer - ActiveX&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the code is concerned ill send you one soon. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing is maybe the add attachments code block isn't getting executed probably that's why it isnt entering the result or fault methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 17:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667701#M15013</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-06T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667702#M15014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, i usually do some debug on the apps with Alert.show(); but in this case my point is, the addAttachment method doesnt make anything. Its like the code goes to the line before the addAttch and when go to the addatch line the function doesnt do anything.&lt;/P&gt;&lt;P&gt;Its weird cuz atleast if the adding fails has to go to the fault result, or if its successful, go to the onresult function, but even with those controls doesnt do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the debug.exe i installed the one u just link me. But i always get the same error. Its strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks i will be waiting for ur working example for this. I really appreciate all ur answers &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 17:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667702#M15014</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-06T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667703#M15015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i have successfully done the add attachments task using the android sdk.&lt;/P&gt;&lt;P&gt;So ill prepare one in Flex and send it ASAP.&lt;/P&gt;&lt;P&gt;Give me a day or 2. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Until then you can try and get the debugger to work.. plus it'll make your debugging alot easier &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 17:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667703#M15015</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-06T17:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667704#M15016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evelyn,&lt;/P&gt;&lt;P&gt;I have prepared a small widget for you..&lt;/P&gt;&lt;P&gt;like I said your code is perfect.. just change&lt;/P&gt;&lt;P&gt;the "AttachmentEvent" event into "FeatureEditResult"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this "function resultado(event:AttachmentEvent):void" would look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function resultado(event:FeatureEditResult):void&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you can use my widget as a reference..&lt;/P&gt;&lt;P&gt;I did get a successful result.&lt;/P&gt;&lt;P&gt;I have used an online ArcGIS service in the example that uploads a txt file.&lt;/P&gt;&lt;P&gt;Here's a Google drive link to the following widget. You can directly included it in your app and run it &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B6Vcfxq0mJ3ELXhRdnN4NmctWWM/view?usp=sharing" title="https://drive.google.com/file/d/0B6Vcfxq0mJ3ELXhRdnN4NmctWWM/view?usp=sharing"&gt;Test.zip - Google Drive&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get a successful result you can navigate to the featureLayer link in yout browser "&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0" title="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0"&gt;Feature Layer: Incidents (ID: 0)&lt;/A&gt; " append the objectid passed as a parameter, so your link would look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/14682516" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0/14682516&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hit enter and you should be navigated to the record. Then click on the Attachmentinfos link to view your attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667704#M15016</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-07T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667705#M15017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try it inmediately!! Thank for all ur effor &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 12:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667705#M15017</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-07T12:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667706#M15018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! i already tried it with my rest srv and it works perfectly &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;U rock !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 16:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667706#M15018</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-07T16:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667707#M15019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most welcome &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Where was the error at?&lt;/P&gt;&lt;P&gt;Did the sample I sent help you?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 16:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667707#M15019</guid>
      <dc:creator>NigelDsouza</dc:creator>
      <dc:date>2015-05-07T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to Add attachment in flex viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667708#M15020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes ur example works perfectly. the error was in the onresult maybe and the addatch sentence.&lt;/P&gt;&lt;P&gt;I have another question. If u want to do a delete or update on one especified attch how will it be the featurelayer.addattachment sentence for both cases?&lt;/P&gt;&lt;P&gt;Or i have to use another method to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 17:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/about-attachments-in-flex-viewer/m-p/667708#M15020</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-05-07T17:08:26Z</dc:date>
    </item>
  </channel>
</rss>

