Announcement

Collapse
No announcement yet.

How to automatically close modal form after update using sc_link?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    In OnAfterUpdate do a sc_redir('coming_from_where',,'_self');

    Comment


    • #3
      Originally posted by Gerd Dietrich View Post
      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.

      Comment

      Working...
      X