Jennifer,
Thank you. I able to get it working, just need to fix the code to allow the user to turn the heat map layer off/on outside of the query.
However, on another note. I was able to get the HeatMap function to work for QueryTasks. However, I have several FindTasks that we are also using. But the FindTask and FindResult doesnt seem to support 'Geometry' as it does with a FeatureSet with a QueryTask.
Do you know if there is a work around for this?