> What it does: checks for a certain field==value among all tiddlers,
> lists all positives in a given Tiddler tid (in my example it is called
> 'CurrentTiddlers'), closes all tiddlers and 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