As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean parent="webscripts.formatmap"> <property name="formats"> <props> <prop key="csv">text/csv</prop> </props> </property> </bean>
<div class="yui-u align-right"> <span id="${el}-export-excel-button" class="yui-button yui-push-button exportToExcel-icon"> <span class="first-child"> <button type="button">${msg('button.exportToExcel')}</button> </span> </span> </div>
Actually I am adding export button at out of box search page only there after getting results want to export that results to csv file.Here I can we perform that operation.In search-min.js only I wrote onclick event for export search button from here I struct how to do it.
You can export data into excel using apache poi api.Use this api with in webscript which extends AbstractWebscript class, with this you will be able to control the repsonse. Below link will help you in creating this stuff.
Alfresco Webscript : Export Data In Excel | Krutik Jayswal