ironhak
September 4, 2023, 7:35am
1
Hi everyone, basically I have the same problem outlined here:
Hi everyone, I have several notes with the following YAML:
---
Type: Documentary
Status: To check
---
Currently my dataview list is like that:
LIST rows.file.link
FROM "/path"
GROUP BY Type
Which generates a list grouped by Type. Now, I would like to generate something like:
- Documentaries
- eg1
- eg2 - To check
..
..
- Articles
- art1 - To check
- art2
..
..
..
So, if Status property is not blank then display it’s content next to the file link, someone has any idea to…
Indeed a solution was found but for some reasons now it does not works properly anymore, using the solution outlined in that thread:
LIST map(rows.file.link, (x) => x.file.link + choice(x.Status, " — " + x.Status, ""))
FROM "/path"
GROUP BY Type
I get a output like this:
- Type 1:
- My note 1, My note 2 - Status A, My note 3
- Type 2:
- My note 4 - Status B, My note 10, My note 7
As you see every note link is on the same line, whereas the intended output would be like:
- Type 1:
- My note 1
- My note 2 - Status A
- My note 3
- Type 2:
- My note 4 - Status B
- My note 10
- My note 7
Does anyone know how to fix this? Thank’s.
ironhak
September 5, 2023, 9:28am
2
Apparently now this happens everytime you create a list on dataview and insert GROUP BY
.
Does anyone have a solution?
Thanks.
holroy
September 5, 2023, 10:12am
3
This is an untested long shot, but what happens if you surround the map( ... )
with list()
? In other words do something like list(map( ... ))
holroy
September 5, 2023, 2:44pm
5
What do you get if you do the following in a file of its own:
- first item
- second item
## hmm
```dataview
LIST list("a", "b", "c")
FLATTEN file.lists as item
WHERE file=this.file
Group by item.text
```
This produces a multilevel list in my world (on mobile) like the following:
ironhak
September 6, 2023, 6:29am
6
Ok, apparently that also created a list comma separated. The issue was that I had an option enabled on style settings plugin that created this behaviour (I’m on minimal theme).
Thank you
system
Closed
September 13, 2023, 6:30am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.