To get and set a field value generally you get the full tiddler then read 
or update the specific field:

To get the value:

var tiddler = $tw.wiki.getTiddler(tiddlerTitle)
var value = tiddler.fields.fieldTitle

or in a more concise way:

var value = $tw.wiki.getTiddler(tiddlerTitle).getFieldString(fieldName)

to set the value:

$tw.wiki.setText(tiddlerTitle, fileName, indexName, value, options);

generally you want to set indexName to null or undefined, if you are 
setting a value in a data tiddler than you use indexName to give the key 
name.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7ebe7c88-d24c-4b7c-9c64-034685c28622%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to