What I’m trying to do
I found a lecture template that integrates a dynamic button that generates lecture notes and populates a table of the lecture notes with auto-filled information that had previously populated based on the entered information. New notes I create no longer populate with entered information and tables generated before, stopped showing data that was populated previously, but don’t after editing. I am pretty new to obsidian and have no experience with dataview. Any help on this is appreciated!
I just want to find out how to get the table populating again.
Things I have tried
I have updated Obsidian and all plugins, restarted Obsidian, disabled all community plugins, and re-enabled them. I also followed the debugging steps and set up the templates in the sandbox with the same result. The following screenshots show what I am concerned about.
This is the code for what is being done:
const {createButton} = app.plugins.plugins["buttons"]
let h = dv.current().file.folder.toString();
h = h+"/Lectures"
var j = dv.pages()
.where(k => k.file.folder == h)
.sort(k => k.lecture, 'asc').lecture.last();
if (j) {
j=j+1;
} else {
j=1
}
const r = ('0' + j.toString()).slice(-2);
const fname = h+"/"+dv.current().file.name+".L"+r
dv.paragraph(createButton({
app,
el: this.container,
args: {
name: "Next lecture: "+j,
type: "note("+fname+", split) template",
action: "lecture_notes_template",
color: "yellow",
}
}))
TABLE WITHOUT ID "[["+file.name+"|Lecture "+lecture+"]]" as lecture, date, topics
sort lecture
where course = this.file.link and (lecture or lecture = 0)