Why do you want the result in js? Are you writing a javascript macro? If so there's a function called "getVariable" that can get current variables for you. See $:/core/modules/macros/changecount.js for an example of usage.
I don't think it's possible to insert the resulting value inside of the same <$set> because 1. You can't concatenate text that way 2. The variable isn't available until after the filter has 'run' but I would love to learn if I was wrong. I could see making a request for an additional <$set> output option, e.g. 'format="the count was %s"' Good luck! Mark On Wednesday, June 21, 2017 at 12:51:04 PM UTC-7, Mat wrote: > > Thanks Mark, but I'm afraid I phrased my question too vaguely. I only > posted the particular filter etc as an example. What I'm really wondering > is really if I can somehow access the (i.e any) filter result in the > SetWidget value/emptyValue attributes - or, perhaps, if it would make sense > to post a feature request for this. > > I.e does my suggestion make sense; that the filter result is stored in a > variable somewhere in the js code and that it therefore should be at least > pretty easy to modify the js code so that value/emptyValue can access it? > It seems like a low hanging fruit but maybe I'm misunderstanding something? > > Again, sorry for phrasing my question poorly and thanks for your kind > reply Mark. > > <:-) > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f6423192-6d2b-4650-a70d-bb68c3b1aeca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

