Open neocorsten opened 3 months ago
It's May......
const {fieldModifier: f} = this.app.plugins.plugins["metadata-menu"].api;
dv.table (["File", "mathLink", "AltNotation", "Dimensions", "StaticDimensions", "MKS", "CGS", "FPS", "LinkedFormula"],
await Promise.all(dv.pages('').map(async p => [
p.file.link,
await f(dv, p, "mathLink"),
await f(dv, p, "mathLink-blocks.AltNotation"),
await f(dv, p, "mathLink-blocks.Dimensions"),
await f(dv, p, "mathLink-blocks.StaticDimensions"),
await f(dv, p, "mathLink-blocks.MKS"),
await f(dv, p, "mathLink-blocks.CGS"),
await f(dv, p, "mathLink-blocks.FPS"),
await f(dv, p, "mathLink-blocks.LinkedFormula"),
])
))
Random person from 2022 formatted their dtaviewjs like this. It removed my blanks with their actual value.
Thanks for your response and help. Whether I use filters or not, it doesn't seem to work using the same sort of structure you. It might be how I treat fileclass. Not sure really.
const {fieldModifier: f} = this.app.plugins.plugins["metadata-menu"].api;
This Didn't Work?
const {fieldModifier: f} = this.app.plugins.plugins["metadata-menu"].api;
dv.table(['Contact', 'Company', 'Business Role', 'Email', 'Last Contact'], await Promise.all(dv.pages('') .where(p => p.fileClass == 'contact') .filter(p => !p.file.path.includes('00_Templates')) .filter(p => !p.file.path.includes('00_Classes')) .map(async p => [ p.file.link, await f(dv, p, "Company"), await f(dv, p, "BusinessRole"), await f(dv, p, "Email"), await f(dv, p, "LastContact"), ]) ))
No it doesn't. Which might mean the issue is elsewhere. When I click on my contact class, Table view doesn't populate correctly either. The contact column shows the entries but the other fields are blank. For example, Fileclass fields have FirstName and LastName defined as Input fields. They are populated for each contact (Contact John Doe has Properties => fileClass=contact, FirstName = John, LastName= Doe). But they don't pull out in Table view. Thanks for your help, really appreciate it. What I am doing is basic, or should be anyway.
No it doesn't. Which might mean the issue is elsewhere. When I click on my contact class, Table view doesn't populate correctly either. The contact column shows the entries but the other fields are blank. For example, Fileclass fields have FirstName and LastName defined as Input fields. They are populated for each contact (Contact John Doe has Properties => fileClass=contact, FirstName = John, LastName= Doe). But they don't pull out in Table view. Thanks for your help, really appreciate it. What I am doing is basic, or should be anyway.
My workaround for the longest has been to use DBFolder and Projects when my metadata was much more simple. Their tables are much more aesthetically pleasing also. Feel free to link a test vault if the problem continues. I'm sure it can be fixed.
Thanks. I have just created a test vault and it works in there (which is great news). I'll have a look tomorrow to see what's different between the two. Also thanks for the recommendation regarding DBFolder and Projects. Will have a look. @LynetteCullens thanks again for your help.
Discussed in https://github.com/mdelobelle/metadatamenu/discussions/631