On Apr 1, 8:27 pm, Dave Parker <[email protected]> wrote:
> Hi, I've been searching for how to set a custom field with javascript
> Story.prototype.setTiddlerField =(function (title,tag,mode,field)
> ...except I'd think that you'd want to set the field by referencing
> the "store", not the "story".

story.setTiddlerField() is used to init the rendered "tags" input
field that is displayed when a tiddler is in edit mode (assuming the
standard EditTemplate, of course).  That's why it's a "story"
function, rather than a "store" function.

> I want to be able to add to or subtract from numbers stored in custom fields 
> by
> clicking checkboxes which trigger the javascript code to set the new field 
> value.

You want to use store.setValue(...) and store.getValue(...)

Here's a posting I made not to long ago with the details:
   https://groups.google.com/group/tiddlywikidev/msg/0460e1174424a1f8

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to