Trying hard to make my #Obsidian dashboard with with dataviewjs but realizing my JavaScript skills are INCREDIBLY atrophied.
It’s so frustrating trying to solve a seemingly simple problem with code only to realize you have to master that code before even attempting to solve the problem.
@fraize How complex is the output that just dataview can't do?
@trinsec Great question. I want to perform a few transforms on the fields based on some conditions.
I have several component costs that have to be assembled into a final cost. Some of those costs are calculated based on value of OTHER costs, and if any of those values are null, treat them as zero.
Some numbers are formatted as percentage for display, some are currency.
I tried doing this in an inline-dataview inside a markdown table, but it got very complex very quickly.
@fraize Oh this involves _calculations_? Right, that's something I haven't gotten around to. I'm great at very much abusing dataview with choice() map() etc to have a varied display going, but no actual calculations (yet). ;)
@trinsec I think that's right. I believe TypeScript is just strongly-typed JS with interfaces and prototyping.