Hi TwWizards
I hope this question doesen't fall in the category "Typical Måns -
Wish he'd learned the JS-language by now.." :-)
I sometimes use toggles to set fieldvalue to true in many tiddlers -
and it would be very nice to be able to reset the value to "false"
from one place...
I already have a resetscript for tags (which I use a lot!(for
tags...)) from Eric Shulman.
However it just removes the "SomeTag" from all tiddlers tagged with
"SomeTag".
It looks like this:
<script label="Reset">
var tag="SomeTag";
var tids=store.getTaggedTiddlers(tag);
store.suspendNotifications();
for (var i=0; i<tids.length; i++) { var t=tids[i];
store.setTiddlerTag(t.title,false,tag);
store.saveTiddler
(t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);
}
store.resumeNotifications();
</script>
The script I need, should be able to:
a) Choose only from tiddlers tagged "SomeTag" and
b) change the value from true to false for "SomeFieldName"...
If you have a working script/or can invent it. I would be very happy
to use it ;-)
YS Måns Mårtensson
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---