多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
4.0 KiB

---
title: 'Actions on record'
description: 'Learn how to perform actions (edit, duplicate, delete, etc) on a record in NocoDB.'
tags: ['Records', 'Delete', 'Edit', 'Duplicate', 'Shortcuts']
keywords : ['NocoDB delete record', 'delete record', 'delete row', 'delete rows']
---
## Keyboard navigation within Grid view
A selected cell can be in one of the following states:
1. `Select` state : A single click on the cell selects the cell. When in this state, arrow keys can be used to navigate to adjacent cells.
2. `Edit` state : A double click on the cell puts the cell in edit state. Cursor can be moved within the cell using arrow keys.
:::note
- Double-click on a cell to put it in edit state directly.
- From Select state, press `Enter` key to enter edit state.
- Press `Esc` key to exit edit state.
- From Edit state, press `Enter` key to save the changes.
:::
Edit state for some cells will be a picker. For example, a cell with `Single Select` field type will have a picker with options to choose from. In such cases, arrow keys can be used to navigate between options.
### Keyboard shortcuts for cell navigation
| Key | Behaviour |
|----------------:|:-------------------------------------------------------------------------------------|
| `⌘` `↑` | Jump to first record in this field (in same page) |
| `⌘` `↓` | Jump to last record in this field (in same page) |
| `⌘` `C` | Copy cell contents to clipboard |
| `⌘` `V` | Paste clipboard contents to cell |
| `Enter` | Switch cell in focus to EDIT mode; opens modal/picker if cell is associated with one |
| `Esc` | Exit cell EDIT mode |
| `Delete` | Clear cell |
| `Space` | Expand current record |
| `←` `→` `↑` `↓` | General cell navigation : left, right, top, bottom |
| `Tab` | Move to next cell horizontally; if on last cell, move to beginning of next record |
### Update Record
You can start editing by any of the following methods
- Double-click on cell to edit
- Click on cell and start typing (this way it will clear the previous content)
- Click on cell and press enter to start editing
And it will automatically save on blur event or if inactive.
### Bulk Update Records
You can bulk update records by
1. Selecting multiple records that you wish to update together and then
2. Right-click on the index field area (first column on the grid view) and then select `Bulk Update records` option from the context menu. This will open `Bulk update` modal.
On the bulk update modal,
3. `Fields area` : Select the fields that you want to update.
4. `Selected fields area` : Enter the new value for the selected fields.
5. Click on the `Bulk Update all` button
6. A confirmation dialog will be displayed. Click on `Confirm` to update the records.
:::danger
This operation cannot be undone.
:::
![Bulk Update](/img/v2/records/bulk-update-1.png)
![Bulk Update](/img/v2/records/bulk-update-2.png)
![Bulk Update](/img/v2/records/bulk-update-3.png)
:::info
You can drag drop required fields from the `Fields area` to the `Selected fields area` & vice versa.
You can update multiple fields at a time.
:::
### Delete Record (Single)
Right-click on record and then from the cell context menu, select `Delete Record` option.
![delete row -1](/img/v2/records/delete-row.png)
### Delete Record (Bulk)
Select multiple records by using the checkbox in first column and then `Delete Selected Records` options from the right click context menu.
![delete row 2](/img/v2/records/delete-row-bulk.png)