<?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: hash table does not return data in  sharedDataupdate2 in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535746#M15160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nadeem,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If you keep on post generic code like this I can not tell where you are going wrong in your implementation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks Robert , I have sorted out the problem. thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 14:49:27 GMT</pubDate>
    <dc:creator>NadeemQazi</dc:creator>
    <dc:date>2012-12-05T14:49:27Z</dc:date>
    <item>
      <title>hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535742#M15156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have successfully achieved the widget communication following&amp;nbsp; widget communication.pdf&amp;nbsp; Prepared By: Robert J. Scheitlin.&amp;nbsp; I have noticed one thing and it is that when sharedDataUpdated2 is fired the hash table does not contain any data, why it is so?. however when the sharedDataUpdated is fired than array collection data array contains the data. i have applied this lines of code in init function of basewidget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AppEvent.addListener(AppEvent.DATA_SENT, sharedDataUpdated2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fetchSharedData();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in the sharedDataupdated2 i have following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var dataTable:Hashtable = event.data as Hashtable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;however event.data does not contain any data and all of its key are empty as i checked in the debugger. therfore when i checked dataTable.find("KernelDensityData") IT RETURNS FALSE. there only sharedDataupDated returns the data but sharedDataupdated2 does not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thought please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 06:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535742#M15156</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2012-12-04T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535743#M15157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nadeem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Where in your code are you using addSharedData? You can not fetch shared data unless you have added it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 12:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535743#M15157</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-04T12:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535744#M15158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nadeem,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Where in your code are you using addSharedData? You can not fetch shared data unless you have added it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes i did&amp;nbsp; use addsharedData in&amp;nbsp; my widget that wish to pass the data to other widget.here is the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var id:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("widgetLabel");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bWidget:IBaseWidget = ViewerContainer.getInstance().widgetManager.getWidget(id, true) as IBaseWidget;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (bWidget){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var vSW:* = bWidget;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addSharedData("myData", myArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; where myArray is array collection variable which contains the data that need to be passed in other widgets.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as i wrote before that i have received data in SharedUpDateData but not in sharedDataUpdated2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 21:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535744#M15158</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2012-12-04T21:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535745#M15159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nadeem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If you keep on post generic code like this I can not tell where you are going wrong in your implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 22:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535745#M15159</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-04T22:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535746#M15160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nadeem,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If you keep on post generic code like this I can not tell where you are going wrong in your implementation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks Robert , I have sorted out the problem. thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 14:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535746#M15160</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2012-12-05T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: hash table does not return data in  sharedDataupdate2</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535747#M15161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nadeem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Glad to hear that. Make sure you mark this thread as answered then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&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;IMG src="http://gis.calhouncounty.org/FlexViewer3.0/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 14:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/hash-table-does-not-return-data-in-nbsp/m-p/535747#M15161</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-05T14:53:34Z</dc:date>
    </item>
  </channel>
</rss>

