Article: AN0002548Updated: 28.07.2024
The following Script for Class Record Detail ensures that after clicking Save, the user remains in the record detail. So the user will not be redirected to the list of records or to another place according to the returnUrl.
function OnAfterSave()
//after saving, the record remains displayed and user does not go to the list of records
var save = OGForm.GetControl('saveButton');
save.NavigateBackUrl = 'DataDetail.aspx?Id=' + OGClassDef.Id + '-' + OGDataRowId;