G'day,

Just focusing on this bit of your code:

<$list filter="[all[current]!days:last-contact{!!frequency}]">
    <$link><$view field="title"/></$link>
  </$list>

Let's do this:

<$list *variable="thisTiddler" *
filter="[all[current]!days:last-contact{!!frequency}]">
    <$link><$view field="title"/></$link>
  </$list>

Now you can use this variable to do all sorts of things inside there.  For 
example:

<$list variable="thisTiddler" 
filter="[all[current]!days:last-contact{!!frequency}]">
    <$link><$view field="title"/></$link>*: <$text text={{{ 
[regexp<thisTiddler>count[]] }}}/>*
  </$list>

Please note: I've just typed all of the above here without testing/trying 
the code in a TiddlyWiki.  So let's say that is just there for discussion's 
sake.
On Monday, September 13, 2021 at 6:25:03 AM UTC-3 0 0 wrote:

> Hello!
> To generate a list of overdue recurrent tiddlers I'm currently using a 
> nested list so I can compare for each tiddler whether they haven't been 
> interacted with in the period defined for each tiddler (frequency). 
> Something like this:
>
> <$list filter="[has[frequency]]">
>   <$list filter="[all[current]!days:last-contact{!!frequency}]">
>     <$link><$view field="title"/></$link>
>   </$list>
> </$list>
>
> Now due to the second list loop handling only a single title at a time, 
> I'm unable to extract any statistical insights out of this, such as count[] 
> -ing all the overdue tiddlers to calculate their percentage or getting the 
> sum[] of a field value the tiddlers share (e.g. time requirement).
>
> Could the overdue filtering process be handled with a single list loop in 
> any way?
> Or is it perhaps possible to set a variable inside the inner list loop 
> that would additively store the value for each item inside the inner list? 
> Could you suggest any other way to approach this problem?
>
> Thanks a lot
> 0
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0521e999-14e9-4c0e-adb0-ba52e241927bn%40googlegroups.com.

Reply via email to