From dfe35ffe64981f3c13c5a85aac61debf25726a2f Mon Sep 17 00:00:00 2001 From: Naveen MR Date: Sat, 5 Feb 2022 14:20:27 +0000 Subject: [PATCH] docs : adding primary value Signed-off-by: Naveen MR --- .../en/setup-and-usages/570_formulas.md | 2 +- .../en/setup-and-usages/575_primary-value.md | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 packages/noco-docs/content/en/setup-and-usages/575_primary-value.md diff --git a/packages/noco-docs/content/en/setup-and-usages/570_formulas.md b/packages/noco-docs/content/en/setup-and-usages/570_formulas.md index 3feccb029c..0bd60e8e3a 100644 --- a/packages/noco-docs/content/en/setup-and-usages/570_formulas.md +++ b/packages/noco-docs/content/en/setup-and-usages/570_formulas.md @@ -1,7 +1,7 @@ --- title: "Formulas" description: "Formulas" -position: 580 +position: 570 category: "Usage" menuTitle: "Formulas" --- diff --git a/packages/noco-docs/content/en/setup-and-usages/575_primary-value.md b/packages/noco-docs/content/en/setup-and-usages/575_primary-value.md new file mode 100644 index 0000000000..2ccdae995c --- /dev/null +++ b/packages/noco-docs/content/en/setup-and-usages/575_primary-value.md @@ -0,0 +1,23 @@ +--- +title: "Primary value" +description: "Primary value" +position: 575 +category: "Usage" +menuTitle: "Primary value" +--- + +## What is a 'Primary value' ? +- Primary value as the name stands is the primary or main value within a row of a table that you generally associate that row with. +- It should be usually associated with a column which is uniquely identifiable. However, this uniqueness is not enforced at the database level. + + +## What is the use of 'Primary value' ? +- Within a spreadsheet, primary value are always highlighted so that it is easier to recognise what row we are in. +- And when LinkToAnotherRecord is created between two tables - it is the primary value that appears in LinkToAnotheRecord column. + +## How is ```Primary value``` identfied 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 ```Primary Value``` to another column within tables ? +- Yes, you can. Hover over column which you want as primary column and click ```Set as Primary Value``` \ No newline at end of file