How to redirect to the parent page from the dialogwindow

randeepnath
Mega Contributor

How to redirect to the parent window from the dialog window.. Any idea on this ?

Thanks in advance

1 ACCEPTED SOLUTION

location.reload(); should work I think


View solution in original post

38 REPLIES 38

randeepnath
Mega Contributor

Actually I am using following code to display popup -



var gdw = new GlideModal('display_Courses_list');


gdw.setTitle('Courses');


      gdw.setSize(500);


      gdw.setPreference('table', 'x_37731_litmos_int_courses_list');


      gdw.setPreference('sysparm_view', 'default');


   


  //Set the table to display


      var num = g_form.getValue('number');


      var query = 'Name!=' + num;


      gdw.setPreference('sysparm_query', query);



      //Open the dialog window


      gdw.render();



And in the popup there we are calling another UI action -



In that I am using the redirect code


Have You Made any UI PAge


randeepnath
Mega Contributor

No


Instad of UI page I have used GlidedialogWindow... to display table view in Popup


can you show that second ui action script.....and what is code


randeepnath
Mega Contributor

Second UI action code is just calling a GlideAjax and updating Incident Notes Column ,( incident.worknotes.). And then we are destroying the Glidedialog window and trying to return to incident form screen. If we are destroying dialogwindow, we can stay ack in the incident form screen itself, but users can not see the updated notes section. So that I just want to show users the updated Notes either in form refresh / reload or some other method.