Hahahah,
You know I had to test that pseudo-example. Here's is the corrected
version. Note that you have to filter the indexes[] result BY SUFFIX
"/Title" to get the correct count. Makes sense now that I see it after
debugging, lol.
<$set name="newRoot" value={{{
[[Test_data.json]indexes[]suffix[/Title]count[]addprefix[test_]] }}}
emptyValue="test_0" >
<<newRoot>>
<$button>
<$action-setfield $tiddler="Test_data.json" $index={{{
[<newRoot>addsuffix[/Title]] }}} $value="json test" />
<$action-setfield $tiddler="Test_data.json" $index={{{
[<newRoot>addsuffix[/Text]] }}} $value="Blah" />
<$action-setfield $tiddler="Test_data.json" $index={{{
[<newRoot>addsuffix[/Date]] }}} $value=<<now>> />
Run Test
</$button>
</$set>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/91f8cd1d-bb5e-4654-8800-eacd702817b1%40googlegroups.com.