Inline-Query: Display number of files satisfying Contains-condition #1416
Answered
by
mnvwvnm
Gewerd-Strauss
asked this question in
Q&A
-
Hello, Assume I have the following two normal dataview-queries:
I am now trying to print the number of items above each respective list, but I cannot figure out how to structure the inline-query. I have no experiences in JS and feel pretty dumb trying this on my own. Any help is appreciated. Thank you, |
Beta Was this translation helpful? Give feedback.
Answered by
mnvwvnm
Sep 9, 2022
Replies: 1 comment 3 replies
-
I don't know how to work with `$=dv.pages("#Internship").where(p => dv.func.contains(p.progress, "sent (")).length` |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Gewerd-Strauss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know how to work with
includes()
in JS if for a substring in an array (only works for all the value/string).But you can use this solution (taking the function
contains()
from DQL:`$=dv.pages("#Internship").where(p => dv.func.contains(p.progress, "sent (")).length`