links.push($('<a href="#"/>').text('Download search result as CSV').click(self.downloadCSV()));
also added the downloadCSV() function as follows
downloadCSV: function(){
var self = this;
return function () {
debugger;
self.manager.store.remove('wt');
self.manager.store.addByValue('wt', 'csv');
self.manager.doRequest(0);
return false;
};
}
Also made sure in doRequest() method of the manager to not invoke any widget's before Request method if the 'wt' value is 'csv'. This way I could avoid the result widget not clearing off its existing content. However i expected the call flow to reach the afterRequest() method of the ResultWidget.js - where I could handle the response from SOLR. However It does not reach there, and request just dies. When i debugged using firebug - the manager.doRequest() happens and after than it goes to jquery.min.js and the request just dies. Can someone help here?
--
You received this message because you are subscribed to the Google Groups "ajax-solr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-solr+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "ajax-solr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-solr+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.