Skip to content

Support creating new entries when filling in the database relation field #10914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
88250 opened this issue Apr 7, 2024 · 16 comments
Closed

Support creating new entries when filling in the database relation field #10914

88250 opened this issue Apr 7, 2024 · 16 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Apr 7, 2024

数据库关联字段填值时支持创建新行

#10836 Point 2

@TCOTC
Copy link
Contributor

TCOTC commented Apr 7, 2024

创建新行时,不根据视图筛选条件填充默认值

@88250
Copy link
Member Author

88250 commented Apr 7, 2024

关联字段填不了。

@TCOTC
Copy link
Contributor

TCOTC commented Apr 7, 2024

没听懂,我们说的是同一件事吗?

@88250
Copy link
Member Author

88250 commented Apr 7, 2024 via email

@TCOTC
Copy link
Contributor

TCOTC commented Apr 7, 2024

我的意思是(举个例子):

假设关联的数据库有「主键」和「单选」两个属性,只有一个视图,并且该视图添加了筛选条件「单选 等于 进行中」,那么在关联列向其关联的数据库中创建新行时,不应该根据其视图的筛选条件为新行的单选属性填充默认值「进行中」——不应该默认填充任何属性。

p.s. 因为数据库可能有单个或多个视图,为了保持在不同的数据库中创建新行的一致性,无论关联的数据库是只有单个视图或着有多个视图,创建的新行都不默认填充属性。

@88250
Copy link
Member Author

88250 commented Apr 7, 2024

懂了,后面实现的时候会考虑到这一点,谢谢。

@TCOTC
Copy link
Contributor

TCOTC commented Apr 28, 2024

参考

在数据库关联列中为关联的数据库创建新条目:

  • 无论输入的文本是否能筛选出条目,都可以新建条目
  • 按钮放在最底下

Notion

@TCOTC
Copy link
Contributor

TCOTC commented Sep 30, 2024

用户需求:

  1. https://ld246.com/article/1732590487683
  2. image

@KuiyueRO
Copy link

另外通过浮窗创建新内容后,选项列表不会及时更新,需要点击外部关闭选项列表再打开。

image

@13953889506
Copy link

这个功能在数据库管理应用中很实用的,请技术团队及时给用户们提供下!

@88250 88250 modified the milestones: backlog, 3.1.14 Nov 26, 2024
@88250 88250 removed their assignment Nov 26, 2024
Vanessa219 added a commit that referenced this issue Nov 26, 2024

Verified

This commit was signed with the committer’s verified signature.
Zuoqiu-Yingyi Yingyi / 颖逸
Vanessa219 added a commit that referenced this issue Nov 26, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Nov 26, 2024

这里要统一用“条目”:

image

@TCOTC
Copy link
Contributor

TCOTC commented Nov 28, 2024

@Vanessa219 这两个没实现:

#10914 (comment)

新增条目不填充字段默认值

#10914 (comment)

  • 无论输入的文本是否能筛选出条目,都可以新建条目
  • 按钮放在最底下

@Vanessa219
Copy link
Member

什么按钮放最下面?

Vanessa219 added a commit that referenced this issue Nov 29, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Nov 29, 2024

新建条目的那个按钮

@Vanessa219
Copy link
Member

好的,都已修改。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 1, 2024

issue 标题要改成 创建新条目

@88250 88250 changed the title Support creating new rows when filling in the database relation field Support creating new entries when filling in the database relation field Dec 1, 2024
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants