client script to refresh a list in a tab

georgechen
Kilo Guru

Hello folks,

How can i refresh a list in a tab in a form with client script on the form?   For example, when a record is saved, the Task SLAs tab does not immediately get updated, and the users need to click the Task = Form for Processing link (see below) to refresh the list.  

find_real_file.png

Thanks in advance.

1 ACCEPTED SOLUTION

Hi George,



I tried and here is the final script you have to write.


Script :


function onLoad() {


    //Type appropriate comment here, and begin script below


    GlideList2.get(g_form.getTableName() + '.task_sla.task').setFilterAndRefresh('');


}


View solution in original post

8 REPLIES 8

Hi George,



I tried and here is the final script you have to write.


Script :


function onLoad() {


    //Type appropriate comment here, and begin script below


    GlideList2.get(g_form.getTableName() + '.task_sla.task').setFilterAndRefresh('');


}


Thanks very much Pradeep, it works like a charm!   the Task Sla tab list refreshes effectively when form get reloads (saved/updated)



Your assistance is much appreciated.



Best regards,


Perfect


Would you mind marking my answer as correct if that answers your question.


sure marked as correct!