AfterDeleteSaveFunction()
AfterDeleteSaveFunction = (
params
) =>Promise
<{error?
:string
;ok
:boolean
; }>
Modify record to change how data is saved to database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.
Parameters
Parameter | Type |
---|---|
params | { adminforth : IAdminForth ; adminUser : AdminUser ; extra? : HttpExtra ; record : any ; recordId : any ; resource : AdminForthResource ; } |
params.adminforth | IAdminForth |
params.adminUser | AdminUser |
params.extra? | HttpExtra |
params.record | any |
params.recordId | any |
params.resource | AdminForthResource |
Returns
Promise
<{ error?
: string
; ok
: boolean
; }>