Stay on record after add new
Posted: 2017-08-03 17:51
Hi all,
By default, AppGini will redirect back to the table view after adding a new record. This is normally great, however I really need it to remain on the new record detail view after adding the new record. This is because I need to then add child records relating to the parent record as soon as the new parent record is created. This needs to apply to 2 tables within my application.
I tried messing about with the RedirectAfterInsert Datalist option in tablename_init() but since there is no SelectedID at this point I can not use it.
Does anyone else have a hook suggestion to prevent redirecting back to table view after inserting a new record?
By default, AppGini will redirect back to the table view after adding a new record. This is normally great, however I really need it to remain on the new record detail view after adding the new record. This is because I need to then add child records relating to the parent record as soon as the new parent record is created. This needs to apply to 2 tables within my application.
I tried messing about with the RedirectAfterInsert Datalist option in tablename_init() but since there is no SelectedID at this point I can not use it.
Does anyone else have a hook suggestion to prevent redirecting back to table view after inserting a new record?