AnsweredAssumed Answered

How to send webscript response as file (file download box)

Question asked by g_rathod on Mar 23, 2012
Latest reply on Nov 27, 2014 by aleksczajka

In alfresco 4 share enterprise, When I perform advance search, I place one more button called "Export Search", when search result gives me nodes (searched results).
e.g. Let say I got 5 results. Following are the steps I performed.
1) Get 5 nodeRefs from client side search.js
2) Calling repo side webscript from the same search.js (custom repo side webscript)
3) My repo side webscript will process those nodes and write data to one file (export as csv)
4) Now question is what output should I give in desc/or response file so, it will directly ask user to save/open that csv file ????

Let me know if anybody resolved same kind of thing.