Hi all
You could help me sorting FET by slice here :
https://groups.google.com/d/topic/tiddlywiki/i3-EnWFmFjc/discussion
with :
> sortBy 'tiddler.title+"::customSlice"' descending
>
>
It looks that it does not work if customSlice is dynamic.
I am trying below to sort Errors by the last time it occured in a Log.
I get not visible error, but sorting is wrong.
Can you please help me ?
Regards
Julien
[[Errors]]
...
<<tiddler [[FetErrorsTagTag]] with:{{tiddler.title}}{{tiddler.title}}>>
...
>
[[FetErrorsTagTag]]
<<forEachTiddler
> where
> 'tiddler.tags.contains("$1") && tiddler.tags.contains("$2") &&
> !tiddler.tags.contains("attachment") && !tiddler.tags.contains("Trash")&&
> !tiddler.tags.contains("hidden")'
> sortBy
> 'tiddler.title+"::LastSeen"'
> ascending
> write
> '((index == 0) ? "|borderless|k\n|LastSeen<br$)DPMO|Description|Todo|h\n"
> : "\n")+"|<<tiddler [["+tiddler.title+"::LastSeen]]$))<<tiddler
> [["+tiddler.title+"::DPMO]]$))|[["+tiddler.title+"|"+tiddler.title+"]]
> ("+store.getValue(tiddler,"alias")+")<br$)<<tiddler
> [["+tiddler.title+"##Description]]$))|<<tiddler
> [["+tiddler.title+"##Todo]]$))|"'
> >>
>
[[ConfusedVectorError]] #Errors
...
> |DPMO|252883|
> |LastSeen|<<tiddler FetLastSeenSlice with: cvErr>>|
> ...
>
[[FetLastSeenSlice]]
<<forEachTiddler
> where
> 'tiddler.text.contains("|$1|") &&
> !tiddler.text.contains("|$1|0|") && !tiddler.tags.contains("attachment")
> && !tiddler.tags.contains("Hidden")'
> sortBy
> tiddler.created
> descending
> write
> '((index == 1) ? tiddler.created.formatString("YYYY-0MM-0DD") :
> "")'
> >>
>
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.