[TW5 Question] How to preppend / append text fileds of two tiddlers programmatically

99 views
Skip to first unread message

hobbyist writer

unread,
Jun 24, 2015, 9:24:39 AM6/24/15
to tiddl...@googlegroups.com
Hi

Could someone please help me with the following problem?

I would like to prepped the text field of TiddlerX to the text field of <<TiddlerB>>. This happens programmatically from within another (a third) tiddler.

Please notice that the tiddler title <<TiddlerB>> is temporarily created and deleted on-demand arbitrarily (time-stamped). So its name is passed by a variable through SetWidget.

I've tried this trough defining a macro but all I get is one-to-one text of the macro appearing inside <<TiddlerB>>.

Any solution/suggestion/workaround will be much appreciated.


Best,
Mehdi

Jed Carty

unread,
Jun 24, 2015, 11:52:29 AM6/24/15
to tiddl...@googlegroups.com
This code appends the text of the tiddler Learning onto the end of the tiddler HelloThere on tiddlywiki.com

\define thisAction()
<$action-setfield $tiddler=HelloThere text="""$(HelloThereText)$$(LearningText)$"""/>
\end

<$set name=HelloThereText value={{HelloThere}}>
<$set name=LearningText value={{Learning}}>
<$button>Test
<<thisAction>>
</$button>
</
$set>
</$set>

is that what you need?

hobbyist

unread,
Jun 24, 2015, 1:30:05 PM6/24/15
to tiddl...@googlegroups.com
Works like a charm. Thank you Jed.
Reply all
Reply to author
Forward
0 new messages