Definitely. Thanks for pointing that out.
I was actually playing with javascript to find out what I could do,
and I wanted that tiddler with the list as well (which admittedly
could be generated by the forEachTiddler macro).

Scalpa

On Feb 24, 10:58 pm, Eric Shulman <[email protected]> wrote:
> > What it does: checks for a certain field==value among alltiddlers,
> > lists all positives in a given Tiddler tid (in my example it is called
> > 'CurrentTiddlers'), closes alltiddlersand then opens the ones listed
> > in CurrentTiddler.
>
> You could simplify this a lot by *not* writing the list to a tiddler
> at all, and just pass the generated array of tiddler titles directly
> to displayTiddlers().
>
>    var fieldname='yourfield'; // put in what you want
>    var fieldvalue='yourvalue'; // same thing
>    var tidlist=[];
>    store.forEachTiddler(function(title,tiddler){
>       if (store.getValue(title,fieldname)==fieldvalue)
>          tidlist.pushUnique(title);
>    });
>    story.closeAllTiddlers();
>    story.displayTiddlers(null,tidlist);
>
> enjoy,
> -e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to