@ -0,0 +1,92 @@
|
||||
--- |
||||
title: "Share Base" |
||||
description: "Procedures to share a base & generating embedded iframe" |
||||
--- |
||||
|
||||
## Generate Share base |
||||
|
||||
- Open Project |
||||
- Click on `Share` button to the top right in the top navigation bar |
||||
|
||||
![share button](https://github.com/nocodb/nocodb/assets/86527202/44d85978-ad27-40a6-9fd5-ea17a0bd3a79) |
||||
|
||||
- Under `Shared base` section and toggle `Enable public access` to enable shared base |
||||
|
||||
![Share base modal](https://github.com/nocodb/nocodb/assets/86527202/4fc4e98a-d180-476d-8b5a-6a5903f081fc) |
||||
|
||||
- Share base link generated is displayed over & can be used to share this project to others. Click `Copy Link` to copy URL |
||||
|
||||
![shared base enable access](https://github.com/nocodb/nocodb/assets/86527202/c5d18e7d-69cb-474c-94f2-d863d8cbc2b3) |
||||
|
||||
|
||||
## Modify Share base |
||||
|
||||
Modifying `Share base` will invalidate the `Share base` link generated previously and will generate a new link. |
||||
|
||||
- Open Project base |
||||
- Click on 'Share' button on top right tool bar |
||||
- Toggle ``Enable public access`` to disable base share |
||||
- Toggle ``Enable public access`` to re-enable base share & generate a new link |
||||
|
||||
|
||||
## Disable Share base |
||||
|
||||
Disabling `Share base` will invalidate the generated `Share base` link |
||||
|
||||
- Open Project base |
||||
- Click on 'Share' button on top right tool bar |
||||
- Toggle ``Enable public access`` to disable base share |
||||
|
||||
## Share base Access Permissions |
||||
|
||||
Shared base can be configured as |
||||
|
||||
- Viewer - User with the link will get **READ ONLY** access to the project data. |
||||
- Editor - User with the link will get **READ & WRITE** access to the project data. |
||||
|
||||
Toggle `Enable Editor Access` button to configure permissions as desired |
||||
|
||||
## Embeddable Frame |
||||
|
||||
NocoDB interface can be embedded into existing applications easily by making use of [HTML IFRAME](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)) attribute. |
||||
|
||||
### Generate embeddable HTML code |
||||
|
||||
- Open Project base |
||||
- Click on 'Share' button on top right tool bar |
||||
- Under 'Shared base link' tab |
||||
- Click on button to copy 'Embeddable HTML code' |
||||
|
||||
Example: |
||||
|
||||
```html |
||||
<iframe |
||||
class="nc-embed" |
||||
src="https://nocodb-nocodb-rsyir.ondigitalocean.app/dashboard/#/nc/base/e3bba9df-4fc1-4d11-b7ce-41c4a3ad6810?embed" |
||||
frameBorder="0" |
||||
width="100%" |
||||
height="700" |
||||
style="background: transparent; border: 1px solid #ddd" |
||||
> |
||||
</iframe> |
||||
``` |
||||
|
||||
### Embed into application's HTML Body |
||||
|
||||
Sample code with embedded iframe generated above |
||||
|
||||
```html |
||||
<!DOCTYPE html> |
||||
<html> |
||||
<body> |
||||
<iframe |
||||
class="nc-embed" |
||||
src="http://localhost:3000/#/nc/base/7d4b551c-b5e0-41c9-a87b-f3984c21d2c7?embed" |
||||
frameBorder="0" |
||||
width="100%" |
||||
height="700" |
||||
style="background: transparent; " |
||||
></iframe> |
||||
</body> |
||||
</html> |
||||
``` |
@ -0,0 +1,41 @@
|
||||
--- |
||||
title: "Primary Key" |
||||
description: "Understanding Primary Key in NocoDB!" |
||||
--- |
||||
|
||||
# Primary Key |
||||
A primary key is a special database table column designated to uniquely identify each table record. |
||||
|
||||
## Use of Primary Key |
||||
As it uniquely identifies an individual record of a table, it is used internally by NocoDB for all operations associated with a record |
||||
|
||||
## Primary Key in NocoDB |
||||
- Primary Key that gets defined / used in NocoDB depends on how underlying table was created. Summary is captured below |
||||
1. From UI, Create new table / Import from Excel / Import from CSV |
||||
1. An `ID` [datatype: Integer] system field created by default during table creation is used as primary key |
||||
2. Additional system fields `created-at`, `updated-at` are inserted by default & can be omitted optionally; these fields can be deleted after table creation |
||||
2. Connect to existing external database |
||||
1. Existing `primary key` field defined for a table is retained as is; NocoDB doesn't insert a new ID field |
||||
2. Additional system fields `created-at`, `updated-at` are not inserted by default |
||||
3. Import from Airtable |
||||
1. Airtable record ID is marked as primary key for imported records, and is mapped to field `ncRecordId` [datatype: varchar] |
||||
2. If a new record is inserted after migration & if ncRecordId field was omitted during record insertion - auto generated string will be inserted by NocoDB |
||||
3. Computed hash value for the entire record is stored in system field `ncRecordHash` |
||||
4. Additional system fields `created-at`, `updated-at` are not inserted by default |
||||
4. Create new table using SDK / API |
||||
1. No default primary key field is introduced by NocoDB. It has to be explicitly specified during table creation (using attribute `pk: true`) |
||||
|
||||
:::info |
||||
**What if Primary Key was missing?** |
||||
|
||||
It is possible to have a table without any primary key. |
||||
- External database table can be created without primary key configuration. |
||||
- New table can be created using SDK / API without primary key |
||||
|
||||
In such scenario's, new records can be created in NocoDB for this table, but records can't be updated or deleted as there is no way for NocoDB to uniquely identify these records |
||||
::: |
||||
|
||||
:::info |
||||
**Can I change the Primary Key to another column within tables?** |
||||
- You can't update Primary Key from NocoDB UI. You can reconfigure it at database level directly & trigger `meta sync` explicitly. |
||||
::: |
@ -0,0 +1,36 @@
|
||||
--- |
||||
title: "Display Value" |
||||
description: "Understanding Display Value in NocoDB!" |
||||
--- |
||||
|
||||
# Display Value |
||||
|
||||
The `Display Value`, as its name suggests, serves as the primary or main value within a row of a table, and it is typically the attribute by which we identify or associate that specific row. While it is advisable for the display value to be linked to a column with unique identifiers, such as a primary key, it's important to note that this uniqueness is not always enforced at the database level. |
||||
|
||||
## Use of Display Value |
||||
- Within a spreadsheet, `Display Value` are always highlighted so that it is easier to recognise what row we are in. |
||||
- And when `Links` are created between two tables - it is the Display Value that appears in `Linked records` modal. |
||||
|
||||
Example: |
||||
Display Value highlighted in Actor table |
||||
![display value](https://github.com/nocodb/nocodb/assets/86527202/f3773b9b-cd0e-411c-843f-9e37796a6600) |
||||
|
||||
Display Value associated when Links field |
||||
The value shown in `Link Records` modal when adding a new link is associated records `Display value` |
||||
|
||||
![display value- links field](https://github.com/nocodb/nocodb/assets/86527202/69eb206f-3796-4587-97cd-0c389053a20a) |
||||
|
||||
|
||||
## Set Display Value |
||||
Click dropdown icon (🔽) in the target column. Click `Set as Display Value`. |
||||
|
||||
![display value set](https://github.com/nocodb/nocodb/assets/86527202/d5f09946-5654-46fe-8ecb-107fc9714219) |
||||
|
||||
:::info |
||||
How is Display Value identified for existing database tables ? |
||||
- It is usually the first column after the primary key which is not a number. |
||||
- If there is no column which is not a number then the column adjacent to primary key is chosen. |
||||
|
||||
Can I change the Display Value to another column within tables ? |
||||
- Yes, you can use the same way mentioned above to set Display Value. |
||||
::: |
@ -0,0 +1,34 @@
|
||||
--- |
||||
title: 'Expanded form' |
||||
description: 'NocoDB provides Expanded Form to let you edit your data easily' |
||||
--- |
||||
|
||||
## Overview |
||||
|
||||
Expanded Form allows you to edit a row data in a form. Apart from record information, it also consists of the activity feed such as user comments or revision history. |
||||
|
||||
![expanded record](https://github.com/nocodb/nocodb/assets/86527202/fbefba54-9b88-44ba-a3bf-8853d849e88f) |
||||
|
||||
## Expanding a Record |
||||
|
||||
To expand a record in a grid view, click on double arrow icon that appears on the first column on hover over a record. |
||||
|
||||
![expand record icon](https://github.com/nocodb/nocodb/assets/86527202/7df9ceb3-b9cf-4891-9e88-ab074a07393f) |
||||
|
||||
Alternatively, we can click on a cell and press the space bar. The expanded form for the corresponding record will be opened. |
||||
|
||||
## Activity Feed |
||||
|
||||
In an expanded form comment section, disable `Comments only` checkbox to show the activity feed. |
||||
|
||||
![expand record activity feed](https://github.com/nocodb/nocodb/assets/86527202/8f7f0f70-2f27-444c-95e4-f359f34319a9) |
||||
|
||||
## Copy Record URL |
||||
|
||||
In an expanded form, click `Copy Record URL` to share the record form to other authorized users. |
||||
|
||||
![expand record copy record url](https://github.com/nocodb/nocodb/assets/86527202/5ce70067-444b-4caf-b491-3566a4c091ea) |
||||
|
||||
## Comment on Record |
||||
|
||||
In an expanded form comment section, feed in the comment in the input box provided and press `Enter` key |
@ -0,0 +1,17 @@
|
||||
--- |
||||
title: 'Delete record' |
||||
--- |
||||
import Tabs from '@theme/Tabs'; |
||||
import TabItem from '@theme/TabItem'; |
||||
|
||||
### Delete Record (Single) |
||||
|
||||
Right-click on the row and then from the cell context menu, select `Delete Row` option. |
||||
|
||||
![delete row -1](https://github.com/nocodb/nocodb/assets/86527202/9eef834b-21cf-4828-90ec-3c2e86cd19db) |
||||
|
||||
|
||||
### Delete Record (Bulk) |
||||
|
||||
Select multiple rows by using the checkbox in first column and then `Delete Selected Rows` options from the right click context menu. |
||||
![delete row 2](https://github.com/nocodb/nocodb/assets/86527202/f83c702a-fa75-42a5-86eb-22ed85c0dec1) |
@ -1,5 +0,0 @@
|
||||
--- |
||||
title: 'Comments on record' |
||||
--- |
||||
import Tabs from '@theme/Tabs'; |
||||
import TabItem from '@theme/TabItem'; |
@ -1,5 +1,53 @@
|
||||
--- |
||||
title: 'View overview' |
||||
title: 'Views' |
||||
description: 'Understanding Views in NocoDB!' |
||||
--- |
||||
import Tabs from '@theme/Tabs'; |
||||
import TabItem from '@theme/TabItem'; |
||||
|
||||
`View` often represents a way to display your data. NocoDB provides different types of views to display your data in different ways. You can also Sort or Filter records within a View. Each View is independent, which means the configuration applying to View 1 will not apply to View 2. |
||||
|
||||
## View Types |
||||
|
||||
### Grid View |
||||
|
||||
Grid View, as a default type of view, allows you to display your data in a spreadsheet-like interface. |
||||
|
||||
![1010-2 Grid](/img/content/grid.png) |
||||
|
||||
### Form View |
||||
|
||||
Form View allows you to arrange fields in a form to input data. |
||||
|
||||
![1010-2 Form](/img/content/form.png) |
||||
|
||||
You can drag-drop columns from the form to form-field-menu-bar as required. |
||||
|
||||
### Gallery View |
||||
|
||||
Gallery View allows you to display images as thumbnails with other fields just like a gallery. |
||||
|
||||
![1010-2 Gallery](/img/content/gallery.png) |
||||
|
||||
### Kanban View |
||||
|
||||
Kanban View allows you to visualise your data using cards at various stacks. |
||||
|
||||
![1010-2 Kanban](/img/content/kanban.png) |
||||
|
||||
## View Permission Types |
||||
|
||||
We can apply permission to each View. By default, Collaborative Views will be used. To see or change the view type, expand `view-tool-bar-menu` as shown below. |
||||
|
||||
![locked view](https://github.com/nocodb/nocodb/assets/86527202/41b28e3b-f8c3-46b7-8e9e-894706379a1c) |
||||
|
||||
### Collaborative Views (default) |
||||
- Collaborators with edit permissions or higher can change the view configurations |
||||
|
||||
### Locked Views |
||||
- No one can edit view configurations until it is Unlocked |
||||
- All collaborators can only READ data from such views |
||||
|
||||
### Personal Views |
||||
- Only you can edit the view configuration. |
||||
- Your personal views are hidden for other collaborators |
||||
- Are not available currently; will be enabled in future release |
||||
|
||||
|
@ -0,0 +1,31 @@
|
||||
--- |
||||
title: "Share View" |
||||
description: "Procedures to share a view" |
||||
--- |
||||
|
||||
|
||||
## Generate Share View |
||||
|
||||
- Open a table or a view |
||||
|
||||
- Click `Share` button on the top right of the toolbar |
||||
|
||||
![share button](https://github.com/nocodb/nocodb/assets/86527202/86d7d8c7-9ed8-4429-a9b8-d08c777e9579) |
||||
|
||||
- Toggle `Enable public viewing` to create shared view link |
||||
|
||||
![shared view](https://github.com/nocodb/nocodb/assets/86527202/5af71246-72cc-4516-ba35-590035f73d8e) |
||||
|
||||
- You can enable `Restrict access with a password` if you want a password-protected view |
||||
- Or you can toggle `Allow Download` button to enable or disable download CSV/XLSX options in the shared view link |
||||
|
||||
|
||||
## Access Share View |
||||
|
||||
- Access the link. If it is password-protected, enter the password to unlock. |
||||
|
||||
![image](https://user-images.githubusercontent.com/35857179/194690379-e3d89df6-d9c1-4d9d-9e8c-7e59c3978d31.png) |
||||
|
||||
- Otherwise, you should see the share view. |
||||
|
||||
![image](https://user-images.githubusercontent.com/35857179/194690389-5b78e236-aacc-49c2-898e-110f95edd1e5.png) |
@ -0,0 +1,67 @@
|
||||
--- |
||||
title: 'Data Sources' |
||||
description: 'NocoDB Data-Source sync, access control & re-config' |
||||
--- |
||||
|
||||
## Overview |
||||
|
||||
`Data Sources` tab includes following functionalities |
||||
- Connect/manage external data source |
||||
- UI Access Control |
||||
- Relations |
||||
|
||||
Note that, currently only one external data source can be added per project. |
||||
|
||||
## Accessing Data Sources |
||||
|
||||
Click `Data Sources` tab in `Project dashboard` |
||||
|
||||
![data source](https://github.com/nocodb/nocodb/assets/86527202/fde9de36-93cd-4b9a-adbe-48666daa009d) |
||||
|
||||
## Sync Metadata |
||||
|
||||
Go to `Data Sources`, click ``Sync Metadata``, you can see your metadata sync status. If it is out of sync, you can sync the schema. See [Sync Schema](/setup-and-usages/sync-schema) for more. |
||||
|
||||
![sync metadata](https://github.com/nocodb/nocodb/assets/86527202/2df4687f-c349-4fd5-a50c-9c6161d87795) |
||||
|
||||
## UI Access Control |
||||
|
||||
Go to `Data Sources`, click ``UI ACL``, you can control the access to each table by roles. |
||||
|
||||
![ui acl](https://github.com/nocodb/nocodb/assets/86527202/2368a543-b985-4adc-8650-5447bf7ee55b) |
||||
|
||||
|
||||
## Relations |
||||
|
||||
Go to `Data Sources`, click ``Relations``, you can see the ERD of your database. |
||||
|
||||
![relations](https://github.com/nocodb/nocodb/assets/86527202/c3775d27-f75d-4263-8903-dd66427de4b4) |
||||
|
||||
|
||||
### Junction table names within Relations |
||||
|
||||
- Enable `Show M2M Tables` within `Project Settings` menu |
||||
- Double click on `Show Columns` to see additional checkboxes get enabled. |
||||
- Enabling which you should be able to see junction tables and their table names. |
||||
|
||||
![image](https://user-images.githubusercontent.com/35857179/219832436-9c1311c3-854c-4b31-9c94-8035dfba2a2b.png) |
||||
|
||||
## Edit external database configuration parameters |
||||
|
||||
Go to `Data Sources`, click ``Edit`` icon, you can re-configure database credentials. |
||||
Please make sure database configuration parameters are valid. Any incorrect parameters could lead to schema loss! |
||||
|
||||
![edit db config](https://github.com/nocodb/nocodb/assets/86527202/8a609529-e4b9-4869-95ce-90bc1b4cfe4d) |
||||
|
||||
## Unlink data source |
||||
|
||||
Go to `Data Sources`, click ``Delete`` against the data source that you wish to un-link. |
||||
|
||||
![datasource unlink](https://github.com/nocodb/nocodb/assets/86527202/39ba34d9-9e00-4bac-996c-48c08c8fc049) |
||||
|
||||
|
||||
## Data source visibility |
||||
|
||||
Go to `Data Sources`, toggle ``Radio-button`` against the data source that you wish to hide/un-hide. |
||||
|
||||
![datasource visibility](https://github.com/nocodb/nocodb/assets/86527202/d7da4046-4755-484e-877c-bd80dfcbeded) |
@ -0,0 +1,5 @@
|
||||
{ |
||||
"label": "Data Source", |
||||
"collapsible": true, |
||||
"collapsed": true |
||||
} |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 132 KiB |