* Delete the given records. * * @param recordIds array of recordIds. * @returns * * * #### Description * Delete the given record by recordIds. * * Throws an error if the user does not have permission to delete the given record. * * #### Example * ```js * async
(recordIds: string[])
| 583 | * ``` |
| 584 | */ |
| 585 | async deleteRecords(recordIds: string[]) { |
| 586 | const result: ICollaCommandExecuteResult<any> = await cmdExecute({ |
| 587 | cmd: CollaCommandName.DeleteRecords, |
| 588 | datasheetId: this.datasheetId, |
| 589 | data: recordIds, |
| 590 | }, this.wCtx.id); |
| 591 | if (result.result === ExecuteResult.Fail) { |
| 592 | throw new Error(result.reason); |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | /** |
| 597 | * Creates a new field. |
no test coverage detected