Back to Grid after Add/Update

Hi,

Im newbie to Scriptcase. I create a a project with many forms and grids. When I click ADD from grid, its appears the form to add a record. I add the record, click in the “Add” button and the record save but I want the browser gets back to the grid showing all records (included the new). I tried with AfterInsert but it redirects fine but doesn’t save the record.

How I can do that?

I don’t use modal.

Thanks

Hi jcovera,
Here is an example to redirect OnAfterInsert and save changes in the database:


sc_commit_trans();
sc_redir(‘destination_app’, ‘’, ‘_self’);

Note: You need to use sc_commit_trans(); to save changes.

Hi Hirambq,

Thanks for your response!.. I will try! =)

J