I try to use dataview inline js query to list values of a metadata key from another file/note.
I am able to recall data from another note with dataview inline query (not js):
`= [[notename]].keyname`
However, if the key includes multiple strings they are listed in a single line divided by comma. I want them to be inserted as a list on separate row, and thus use the dataview javascript function to replace comma with
I am able to recall frontmatter keys with multiple values with javascript with the replaceAll function from the same document by:
However, I am unable to combine the two methods to make a dataview js inline query from another note which also includes the replaceAll function so I get the different values on separate rows. Anyone know how I could achieve this?
Wow, thank you @mnvwvnm !
this is very useful! I will save it in my “code” note for later!
Just recently started with obsidian and planning to build my own personal reference system for medical litterature and the possibilities in obsidian are just endless with js code (and DQL)
However, this is not working if I try to change something else than frontmatter info. For instance if I try to use the replaceAll function on inlinks I get an error (says replaceAll is not a function):
Is there a way I can use replaceAll or other function to change the characters in inlinks? In this case all my inlinks starts with a “@”, which I would like to remove.