A general technique when you need to take the output of a system of nested
lists and make them into one list is to put the nested lists in a macro. 
Then
wikify the output of the macro, turn it back into a list with "enlist", and 
then
perform any final sorting steps. Thus:

\define roots()
<$list filter="[all[shadows]sort[title]]" >
   <$list filter="[<currentTiddler>split[/]nth[2]]" >

   </$list>
</$list>
\end

<$wikify text=<<roots>> name="roots2">
<$list filter="[enlist<roots2>sort[]]">

</$list>
</$wikify>



On Friday, February 7, 2020 at 8:30:50 PM UTC-8, Mohamed Amin wrote:
>
> Hello All,
>
> It may be trivial , but I tried to search the group with no luck, so 
> appreciate you help here.
>
> Suppose that I have a nested "lists" like the following (FOR EACH "shadow 
> tiddler" GET "root value") :-
>
> <$list filter="[all[shadows]sort[title]]" >
>    <$list filter="[<currentTiddler>split[/]nth[2]]" >
>
>    </$list>
> </$list>
>
> Note that the Number of rows in the output will equal to the number of 
> shadow tiddlers (> 1000)
>
> Now, what should I do to get only the unique values (around 15 value)
>
> Thanks in advance
>
>

-- 
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/77218604-a7e3-4d45-96e9-902d23af3b4b%40googlegroups.com.

Reply via email to