[tw] Re: Adding a new index to a JSON data tiddler

2017-11-29 Thread Rob Hoelz
Ah, exploiting the fact that the length of the array is the next index - nice trick! Thanks, Joshua - that should work nicely. On Wednesday, November 29, 2017 at 12:21:29 PM UTC-6, Joshua Fontany wrote: > > If the JSON tiddler is a flat array: > [ ] > not > { ... } > then zero-based

[tw] Re: Adding a new index to a JSON data tiddler

2017-11-29 Thread Joshua Fontany
If the JSON tiddler is a flat array: [ ] not { ... } then zero-based numerals function fine for the index. Button to add the content of [[$:/temp/newIndex]] to the JSON tiddler defined in {{$:/temp/newIndex!!parent}}: <$set name="i" filter="[{$:/temp/newIndex!!parent}indexes[]count[]]">

[tw] Re: Adding a new index to a JSON data tiddler

2017-11-29 Thread PMario
Hi Rob, If you work with data tiddlers and you want to create some UI to modify the content you'll need an index. Any form of index, to be able to reference the content. eg: {{myData##01}} {{myData##02}} ... [ "01":"Firefox Fx", "02":"FTS [[full text search]]" ] I'm not sure, what