How do I turn this dataviewjs list into a table? #2183
Unanswered
wealthychef1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have the following functional codeblock in a page.
I want to make it into a table but my efforts are returning errors which I am too dumb to fathom. For example, this is bad:
gives
Evaluation Error: TypeError: Cannot read properties of undefined (reading 'link')
This is also bad:
At the heart of the problem is some difference between
dv.current().file.inlinks
anddv.pages("query")
. The latter is what I use in my dv.table() queries elsewhere and it works fine.What am I doing wrong?
The reason I'm doing this is that "lists" do not have headers and do not declare theselves to be empty. So when the list is empty I cannot tell where it is on the page. Tables are polite enough to say that they have no entries in them. :-)
thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions