We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to relaod page using ui action

Rosy14
Kilo Sage

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

Hi @Rosy14 

if the solution worked feel free to mark the response as correct so it ends up in solved queue 

Best Regards
Aman Kumar

shikhatyagi
Kilo Sage

Hi @Rosy14 

 

Please use action.setRedirectURL(current);

Use below script:

 

current.u_report_flag = 1;
current.update();
action.setRedirectURL(current);
 
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution