When saving in Detail View go back to Table View

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
selectsteel
Posts: 26
Joined: 2013-09-23 14:14

When saving in Detail View go back to Table View

Post by selectsteel » 2022-08-12 20:42

I have my Detail View open in a new page and I want when someone saves a new record to go back to the Table view rather than stay in detail view. Is this possible?

patsd102
Veteran Member
Posts: 123
Joined: 2013-01-15 19:59

Re: When saving in Detail View go back to Table View

Post by patsd102 » 2022-08-13 19:46

In your yourtablename_view.php find this line " $x->RedirectAfterInsert = 'yourtablename_view.php?SelectedID=#ID#; "and change to $x->RedirectAfterInsert = 'yourtablename_view.php';

Please note, this is a main file change, so you will need to change the line each time you update your app.
5.98

patsd102
Veteran Member
Posts: 123
Joined: 2013-01-15 19:59

Re: When saving in Detail View go back to Table View

Post by patsd102 » 2022-08-13 19:58

You can also do this in the app, under Detail view settings.
5.98

selectsteel
Posts: 26
Joined: 2013-09-23 14:14

Re: When saving in Detail View go back to Table View

Post by selectsteel » 2022-08-15 13:35

Thanks for the help very much appreciated.

Post Reply