Excel file IS DOWNLOADING AS BLANK FROM LIST VIEW

abhi56
Tera Contributor

I have created a button generate excel ,on a list view of a particular table ,now i want to download all the records as excel  on clicking on (but i want only few fields i added in specific view ).

I used 2 code for one it is getting downloaded but i want to control  the field which will be downloaded-

function runContextAction() {
    var exportHandler = new ContextMenuExportHandler(g_list,'unload_excel_xlsx');
    exportHandler.exportRecords();
 }
2)this is downloading an excel but it is blank
function runContextAction() {
    g_navigation.open('/' +x_y_z(table name)+'_list.do?EXCEL&sysparm_view=PDF', '_blank')
 }
how to download the excel with this pdf view where only specific field will be downloaded into that excel
Thank you
1 REPLY 1

abhi56
Tera Contributor

Ankur Bawiskar  can you pls help,i saw one post related this