Hi Mark,

On Saturday, August 5, 2017 at 10:21:31 PM UTC+2, Mark S. wrote:
>
> The documentation appears to be wrong. I put together code that seems to 
> work.
>
 
Thank you very much! Following your suggestion, I modified my code, and it 
works fine now.

My code looks like this now:

\define folded-state2()
$:/state/folded/$(foldme)$
\end
<$edit-text tiddler="$:/temp/mytoot" tag="textarea" class="editorArea" 
default="json toot"/>
<$edit-text tiddler="$:/temp/mytoot" tag="input" field="titel" default="Toot 
Title" size=40/>
<$set name="foldme" value={{$:/temp/mytoot!!titel}}>
<$button>
<$action-createtiddler $basetitle={{$:/temp/mytoot!!titel}} tags="Toots" 
type="application/json" $savetitle="!!toot-titel" text={{$:/temp/mytoot}}/>
Save json toot
<$action-sendmessage $message="tm-fold-tiddler" $param=<<foldme>> 
foldedState=<<folded-state2>> />
<$action-deletetiddler $tiddler="$:/temp/mytoot"/>
</$button>
</$set>

For explanation: I wanted to hide the original JSON content of the 
tiddlers, because I create formatted output with custom code from another 
tiddler tagged $:/tags/ViewTemplate. 

Thanks! 

Cheers,

Stef

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/2ea06d76-db1d-45f7-8342-a0dc5a733802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to