How to automatically close modal form after update using sc_link?

Hi,

I wonder if there is some way to close the modal form after update.
If we connect the link without sc_link (via Links toolbar), we can set the properties of “Close form after update”. But how do we do it with sc_link? Or is there any other way?
Because I tried to use sc_exit on the form afterUpdate, and it didn’t work.

Thanks and regards

In OnAfterUpdate do a sc_redir(‘coming_from_where’,’_self’);

It doesn’t work.
If I add sc_redir onAfterUpdate, it doesn’t get updated at all.
And the modal doesn’t close. It just ‘redirect’, so the grid I call is displayed in the modal. I need to close the modal and refresh the grid. Just like when we do it with “Close form after update”.

Thanks for the respond, though. :slight_smile:

Greetings. How did you solve this problem? Thank you