Persist only to... (closed) #915
Unanswered
reorganice
asked this question in
Q&A
Replies: 1 comment
-
Ok, I am sorry.. after using db-folder for about one year and a half I left for metadatamenu plugin... the field formula over there is as easy as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have a Column Formula manipulating the inline field
tasks-left:: 0 left
I want other dataview queries to also show the updated value, so I persist my field as following
${db.dataview.page(row.__file__.path).file.tasks.where(t=>!t.completed).length} left
My global database is restricted like this
FROM #VaultName WHERE !contains(file.path, "---")
Every file I want to keep track of has a
vault:: #VaultName
And those files inside "---" folder (obsidian root, potentially another one elsewhere) are my templates, scripts, dashboards and other stuff I don't want to see AND that also shouldn't get the persisted field...
(P.S.: These two inline fields from above together with some others are nicely located inside a "METADATA" Callout underneath every note that is created through one of my template flows (QuickAdd))
So when I create/modify a file
(inside my "---" folder OR just somewhere without belonging to db through #VaultName)
this file shows up (just until I refresh) inside my database (which is kind of strange) and the persisted field gets added
to the top of that file (-> cause these files normally don't have my "METADATA" Callout and they shouldn't!!)
My Question is:
How do I setup the Formula or restrict it so that it also does not care about "---" folder(s)?
Or how else do I solve this shortly showing up? (Why does it actually? It's two things against doing that from db query)
Or maybe you know another solution?
Also I already reset my whole Obsidian Vault because I thought maybe its happening because of dirty background stuff.
I searched a lot, tried to change the Formula and I also asked Phind Ai for helping my write my own js function for that... (which was great, check it out!) but I also didn't manage to solve the problem on my own.. :(
Lots of love in advance!!
Beta Was this translation helpful? Give feedback.
All reactions