Hi all.

I'm struggling to figure out how to create both multiple objects in a 
JSONTiddler and nested objects.

Here is an example of some code to create an entry in the JSONTiddler 
"myData". 

<$edit-text tiddler="$:/state/enter-text"/>

<$button>
<$wikify name=title-value text="<<currentTiddler>> - <<now>>" >
<$action-setfield $tiddler=myData $index="Title" $value=<<title-value>>/>
<$action-setfield $tiddler=myData $index="Text" 
$value={{$:/state/enter-text}}/>
<$action-setfield $tiddler=myData $index="Date" $value=<<now>>/>
Save
</$wikify>
</$button>

At the moment when I press "Save" it overwrites any data already in 
"myData". How can I change my code so that I can click "Save" and have a 
new entry added to "myData" each time?

It's also not clear to me how to create nested objects so if someone could 
point me in right direction on that aswell I would really appreciate it!

Thanks in advance for your help. Si.

-- 
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/5ec279fd-cbe3-44ec-bc10-e2589cbcdbba%40googlegroups.com.

Reply via email to