I am trying to get dataview to display something. Currently, there is no change when I toggle between the edit and read panels after painstakingly following every Gemini piece of advice. AI has given up on me and sent me to the experts in the community. Any help would be appreciated.
Things I have tried
I have copy and pasted queries exactly as provided.
I have turned off all other community plug-ins.
I have created a new vault and tried in there.
I have reinstalled obsidian.
Gemini says everything is correct but the reading pane appears not to be rendering correctly.
In my most simple test case. This is the code for my Note:
---
testKey: testValue
---
This is the test data note.
This is the code for my query in a different Note:
LIST WHERE testKey = "testValue"
Nothing changes when I toggle back and forth between reading and editing using either Ctrl+E or clicking on the icon.
It’s difficult or impossible to help with code-related questions if you don’t show the actual code. Show the entire Dataview query, and use backticks to format it as code. Show the code with 3 backticks, and then surround it with 4 backticks so it also shows the 3-backticks. I’ll show an example below:
````
```dataview
LIST WHERE testKey = "testValue"
```
````
(Also it would be more sensible to start with the help docs rather than asking Gemini. Dataview)
To use inline fields you’ll need to use double colons, and in most cases it’s advisable to surround the expression with either square or normal parentheses.
If you’re aming for properties make sure the very first line is just the triple dashes, then a line with your property key and value. And then a line with triple dashes at the end.
I think the problem is you aren’t adding the line at the beginning:
```dataview
That line is what tells the Dataview code to trigger. Otherwise you are just typing the word “LIST” and Obsidian doesn’t know what to do with that. You need the backticks at both the top and the bottom, and the dataview keyword