How to download List view into excel

Hareesha
Tera Contributor

I need help to provide a button on top right corner to download list view as excel.I know i can go with export from list cloumn but i need a button. Thanks

1 ACCEPTED SOLUTION

@Hareesha yes you can do it like below 

function generateExcel()
{
g_navigation.open('/' + tableName + '_list.do?EXCEL&sysparm_query=your_query', '_blank');
}

PLEASE MARK MY ANSWER CORRECT IF IT HELPS YOU

 

View solution in original post

7 REPLIES 7

Hi @Mohith Devatte I tried to copy that code but Excel file is getting downloaded but it is blank 

Vasantharajan N
Giga Sage
Giga Sage

find_real_file.png

 function runContextAction() {
    var exportHandler = new ContextMenuExportHandler(g_list,'unload_excel_xlsx');
    exportHandler.exportRecords();
 }

Thanks & Regards,
Vasanth

Hi @Vasantharajan N is there any way to mention the view name ,like i don't to download all the fields I only wants that specific fields get downloaded