Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

customize GwtPollDialog to download excel

xiaolinlee
Tera Contributor

Hi,

i want to add a UI action to download data to excel by following code,

it works now, but how to capture if 'Cancel' button is clicked ?

 

function downloadExcel() {

    var checked = g_list.getChecked(); // get's the sys_id of the checked records
    var query = "sys_idIN" + checked.toString();
    var rows = checked.split(",").length;
    var view = g_list.getView();
    var dialog = new GwtPollDialog('x_presen_0_application_sum', query, rows, view, 'unload_excel_xlsx');
    dialog.execute();
}
 
 
0 REPLIES 0