Hello everyone,
I am hoping someone can help me figure this out...
Currently the *New Table* button in my plugin TiddlyTables
<http://tiddlytables.tiddlyspot.com/>creates a new tiddler with *<<table>>*
as its text. I would like that to instead be: *<<table "title of new
tiddler">> *where "title of new tiddler" is the title generated by the
action-createtiddler widget.
Here is a basic version of what I am attempting:
\define newTableText()
<<table "$(newTableTitle)$">>
\end
<$button>
<$action-createtiddler $basetitle="New Table"
$savetitle="$:/temp/title"
/>
<$set name="newTableTitle" value={{$:/temp/title}} >
<$action-setfield $tiddler={{$:/temp/title}} text=<<newTableText>>/>
</$set>
<$action-navigate $to={{$:/temp/title}}/>
<$action-deletetiddler $tiddler="$:/temp/title"/>
New Table</$button>
The problem seems to be with the set widget. I think the variable is
getting assigned *before* $:/temp/title is created. Am I using the set
widget incorrectly? Is there another way to accomplish this?
Any help is greatly appreciated!
Alan
--
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/aaac1f6d-3137-4d15-8394-2118748cc7e2%40googlegroups.com.