<?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 Add with applyedit in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-with-applyedit/m-p/77887#M1748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hoping someone can help me, im developing a widget that when the user clic on the map, add a new registry in a db. I have the following code but i dont know why it doesnt work propertly.&lt;/P&gt;&lt;P&gt;It goes to the onresult function and say its done, but when i go to the database, there is not any new row. Its like it didnt save anything of the data that i want to save on the db.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters im passing are raw, cuz i wanna try the add, but idk why it doesnt save any new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #0033ff;"&gt;protected &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #339966;"&gt;function&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; GRABA_CENTRAL():&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #0033ff;"&gt;void&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;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; var nuevaCentral:* = new Object;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; var fecha_star:String = CboMes2.selectedItem + CboYear2.selectedItem;&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;nuevaCentral["EMPRESA_ID"]= 006;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; nuevaCentral["PERIODO_STAR"]= fecha_star;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; myPropLayer.url = "";&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;var newgrap2:Graphic = new Graphic(null,null,nuevaCentral);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; myPropLayer.&lt;SPAN style="background: blue;"&gt;applyEdits&lt;/SPAN&gt;([ newgrap2 ],null,null,false,new AsyncResponder(onResult2,onFault2));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; function onResult2(info:Object, token:Object = null):void&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;{&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; Alert.show("Registro actualizado exitosamente" +info.toString());&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; function onFault2(info:Object, token:Object = null):void&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;{&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; Alert.show("Error al editar nuevo elemento "+info.toString());&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Mensaje editado por: Evelyn Hernandez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 15:39:41 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2015-03-13T15:39:41Z</dc:date>
    <item>
      <title>Add with applyedit</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-with-applyedit/m-p/77887#M1748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hoping someone can help me, im developing a widget that when the user clic on the map, add a new registry in a db. I have the following code but i dont know why it doesnt work propertly.&lt;/P&gt;&lt;P&gt;It goes to the onresult function and say its done, but when i go to the database, there is not any new row. Its like it didnt save anything of the data that i want to save on the db.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters im passing are raw, cuz i wanna try the add, but idk why it doesnt save any new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #0033ff;"&gt;protected &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #339966;"&gt;function&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; GRABA_CENTRAL():&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #0033ff;"&gt;void&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;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; var nuevaCentral:* = new Object;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; var fecha_star:String = CboMes2.selectedItem + CboYear2.selectedItem;&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;nuevaCentral["EMPRESA_ID"]= 006;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; nuevaCentral["PERIODO_STAR"]= fecha_star;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; myPropLayer.url = "";&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;var newgrap2:Graphic = new Graphic(null,null,nuevaCentral);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; myPropLayer.&lt;SPAN style="background: blue;"&gt;applyEdits&lt;/SPAN&gt;([ newgrap2 ],null,null,false,new AsyncResponder(onResult2,onFault2));&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; function onResult2(info:Object, token:Object = null):void&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;{&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; Alert.show("Registro actualizado exitosamente" +info.toString());&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt; function onFault2(info:Object, token:Object = null):void&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;{&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #009900; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;EM&gt; Alert.show("Error al editar nuevo elemento "+info.toString());&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #009900;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Mensaje editado por: Evelyn Hernandez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-with-applyedit/m-p/77887#M1748</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-03-13T15:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add with applyedit</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-with-applyedit/m-p/77888#M1749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved my problem, putting the array like: array[0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/add-with-applyedit/m-p/77888#M1749</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2015-03-13T15:56:49Z</dc:date>
    </item>
  </channel>
</rss>

