What I’m trying to do
- I enter an array of data into a dataview field in the body of my daily note using the quickadd plugin; Example: “TimeNoted:: [0.5,1.5,3]”
- I sum that array using a dataviewjs script that outputs the aggregate value into a new dataview field in the same note; Example “TotalTimeNoted:: 5”
- Because the valueis calculated, I cannot store the data in the frontmatter of my daily note;
- I now want to reference the calculated value in the “TotalTimeNoted” field in a separate note using Dataview and/or the Tracker plugins to track daily time totals.
Things I have tried
- I have tried using dataview and tracker directly. They can both easily reference the ‘static’ data in the arrays and datfields of other notes - but cannot reference the calculated field(?);
- I have tried using Templater, to create new Daily Notes that output the calculated “TotalTimeNoted” for yesterday as a ‘static’ datafield in the new daily note (which could then be referenced) - but this does not work:
2.1 Templater can easily read and output data-fields stored in frontmatter of other notes, but not in the body(?).
2.2 I have tried Templater approaches using script based around app.metadataCache.getFileCache and tp.file.content.match(regex);
I have trawled through the forum, reddit, and search engines for days.
Thanks for any assistance