Hi I have a functional dataview query - it lists all tasks from a specific note that are under the heading called “Tasks” since I want to ignore any other checkboxes.
TASK
WHERE file.name = "Test" AND contains(meta(section).subpath, "Tasks")
What I’m trying to do
I want to create a progress bar for those, but I’m unable to convert the query properly into this inline script.
This works so far but it doesn’t include the subpath filter:
$= const value = Math.round(((dv.page("Test").file.tasks.where(t => t.completed).length) / (dv.page("Test").file.tasks).length || 0 ) * 100); "<progress value='" + value + "' max='100'></progress>" + " " + value + "%"
How can I add the contains(meta(section).subpath, "Tasks"
into the inline query?