How to relaod page using ui action

Rosy14
Tera Guru

Hi,

I am updating field value by UI action button.. i want to reload page after clicking the button so that update info show. below script not working.

 

current.u_report_flag = 1;
current.update();
setTimeout(function() {
    window.location.reload()
}, 5000);
1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hi @Rosy14 

If you are using a client UI action, then within the onclick function you can pass:

g_navigation.reloadWindow();

which is client side API

 

For server- side, you can always use:

action.setRedirectURL(current);

 

Best Regards
Aman Kumar

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Hi @Rosy14 ,

"g_navigation.reloadWindow()" works well for me.

 

It is not working

 
action.setRedirectURL(current);

this working .. solved

Aman Kumar S
Kilo Patron

Hi @Rosy14 

If you are using a client UI action, then within the onclick function you can pass:

g_navigation.reloadWindow();

which is client side API

 

For server- side, you can always use:

action.setRedirectURL(current);

 

Best Regards
Aman Kumar