将表A的状态传递到表B和表C中的Notion中。

huangapple go评论44阅读模式
英文:

Propagate the status from Table A to Table B to Table C in notion?

问题

I am trying to create a template where I have the following 3 table:

  • BookDB
  • ChapterDB
  • SectionDB

In SectionDB I have 3 columns: Name, Status (of type Status), Chapter (related to Name column of ChapterDB).

In ChapterDB I have 3 columns: Name, Book (related to Name column of BookDB), Sections (related to Name column of SectionDB)

In BookDB I have 3 columns: Name, Chapters (related to Name column of ChapterDB), Status (which must get the status/progress from the Status column of ChapterDB)

Now I can create a column by the name: Status (of type Rollup) in ChapterDB, which can then present the progress of a chapter based on the combined value of Status column for all the sections of a Chapter (related column in SectionDB) of SectionDB. So, this is one-level relation and is achievable.

Question: What I want, is to use this Status (in ChapterDB) to present status/progress of the Book in BookDB. How can it be done?

英文:

I am trying to create a template where I have the following 3 table:

  • BookDB
  • ChapterDB
  • SectionDB

In SectionDB I have 3 columns: Name, Status (of type Status), Chapter (related to Name column of ChapterDB).
将表A的状态传递到表B和表C中的Notion中。

In ChapterDB I have 3 columns: Name, Book (related to Name column of BookDB), Sections (related to Name column of SectionDB)
将表A的状态传递到表B和表C中的Notion中。

In BookDB I have 3 columns: Name, Chapters (related to Name column of ChapterDB), Status (which must get the status/progress from the Status column of ChapterDB)
将表A的状态传递到表B和表C中的Notion中。

Now I can create a column by the name: Status (of type Rollup) in ChapterDB, which can then present the progress of a chapter based on the combined value of Status column for all the sections of a Chapter (related column in SectionDB) of SectionDB. So, this is one-level relation and is achievable.

Question: What I want, is to use this Status (in ChapterDB) to present status/progress of the Book in BookDB. How can it be done?

答案1

得分: 2

不能直接对一个卷集进行进一步卷集,您必须在章节数据库中创建一个公式属性,让它显示状态的卷集:Prop(rollupofstatus),然后您可以在书籍数据库上对该属性进行卷集。

英文:

You cannot do a rollup of a rollup directly, you have to make a formula property in the chapter database and have if display the rollup of the status: Prop(rollupofstatus) then you can do a rollup of that property on the book database.

答案2

得分: 0

以下是您要翻译的内容:

"The answer by @Nickmeu was hard information for me to find so I thought I'd reinforce and elaborate. I hope others find this helpful.

If you're rolling up a text field, a formula works just fine.

Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (text)

If you make tableOrdersCombined the following way, it will output text in Col6:

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. orderID.company1 (rollup)
  5. orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))

The problem is when you try to rollup relation or rollup fields. For example:

Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (relation)

If you make tableOrdersCombined the following way, it will output a link😠 in Col6:

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. orderID.company1 (rollup)
  5. orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))

Instead, make tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (relation)
  3. form.orderID (formula) prop("orderID")

Then, if you make tableOrdersCombined the following way, it will output text in Col6 (although 4 & 5 will be text also):

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. form.orderID.company1 (rollup)
  5. form.orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))"
英文:

The answer by @Nickmeu was hard information for me to find so I thought I'd reinforce and elaborate. I hope others find this helpful.

If you're rolling up a text field, a formula works just fine.

Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (text)

If you make tableOrdersCombined the following way, it will output text in Col6:

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. orderID.company1 (rollup)
  5. orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))

The problem is when you try to rollup relation or rollup fields. For example:

Let's say that you have tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (relation)

If you make tableOrdersCombined the following way, it will output a link😠 in Col6:

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. orderID.company1 (rollup)
  5. orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))

Instead, make tableOrdersCompany1 and tableOrdersCompany2, each with the following columns:

  1. Name (text)
  2. orderID (relation)
  3. form.orderID (formula) prop("orderID")

Then, if you make tableOrdersCombined the following way, it will output text in Col6 (although 4 & 5 will be text also):

  1. Name (text)
  2. name.company1 (relation)
  3. name.company2 (relation)
  4. form.orderID.company1 (rollup)
  5. form.orderID.company2 (rollup)
  6. form.orderID.combined (formula)
    concat(prop("orderID.company1"),prop("orderID.company2"))

huangapple
  • 本文由 发表于 2023年5月6日 22:42:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76189489.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定