Hi, I have this script that I stole from one of Eric's answers to
someone and tried to modify it like this:


<script>
        var out=[]; var fmt='| %0|%1|';
        var tids=store.getTaggedTiddlers('qwerty');
        for (var i=0; i<tids.length; i++)
       {
                out.push(tids[i].title);
                for (var f in tids[i].fields)
if (tids[i].fields[f]=true)
{
out.push(fmt.format([f,tids[i].fields[f]]));
}
        }
        return out.join('\n');
</script>

It used to just make a table that lists the fields of a tiddler and
the fields' contents.  What I want it to do is just list the fields
and contents that are "true" (as defined by checkboxes attached to the
tiddlers fields).  Instead, what this script does is cause all fields
to be true, even the "changecount" field that's supposed to be a
number.

I'm obviously slow when it comes to scripting, but a little help would
be greatly appreciated.

Oh, here's the original script and context with the checkboxes:
----
checkboxes that toggle fields:

[_(Left@)] Left ... [_(Right@)] Right ... [_(bilateral@)] bilateral

<script>
        var out=[]; var fmt='| %0|%1|';
        var tids=store.getTaggedTiddlers('qwerty');
        for (var i=0; i<tids.length; i++)
       {
                out.push(tids[i].title);
                for (var f in tids[i].fields) out.push(fmt.format
([f,tids[i].fields[f]]));
        }
        return out.join('\n');
</script>
----
Thanks,
Dave Parker

--

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=.


Reply via email to