What is GwtPollDialog and GwtPollScheduleDialog ?

harun_isakovic
Mega Guru

I've seen this referenced in export (to Excel) functions but I cannot get a definition of it.

Is it part of some plugin maybe?

How can I get access to it?

1 ACCEPTED SOLUTION

Gowrisankar Sat
Tera Guru

These are internal java package files which are used for export functionality in the instance.

You cannot get access to the code, but you can use similar syntax below in contextual menu:

var dialog = new GwtPollDialog(g_list.tableName, sysparm_query, sysparm_rows, sysparm_view, 'unload_xml');
dialog.execute();
return;
}

https://<instance_name>.service-now.com/sys_ui_context_menu.do?sys_id=d1ad2f010a0a0b3e005c8b7fbd7c4e...

 

View solution in original post

8 REPLIES 8

I tried this function, but for some reason it does not work for me.

GwtPollDialog seems to do nothing.

I did made a selection, the query/rows/tablename are filled (checked by using an alert)

view I left empty, but also tried default

but it does not do anything. (I did use it from HR-scope at first, but also if I try from a global-scope, the result seems the same)

my instance is in Utah

what am I doing wrong.

 

Hello,

Can we change the file name while exporting it? as of now, it get download with table name.file extension. 

so is there any way to customize this file name?

can we pass file name to GwtPollDialog function? 

 

Best Regards,

Pooja

Gaurav Shirsat
Mega Sage

GwtPollDialog is used when exporting to Excel from UI Action:

https://community.servicenow.com/community?id=community_question&sys_id=52648b69dbd8dbc01dcaf3231f96...

https://www.servicenowguru.com/system-ui/enabling-related-list-exports-servicenow/

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat

Ankur Bawiskar
Tera Patron
Tera Patron

@harun.isakovic 

Hope you are doing good.

Let me know if that answered your question.

if you think there is any response that helps you please mark that helpful or accepted so that this thread can be closed.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader