I would love it if I'm wrong, but in my experience you can't have the 
changes created by one action widget then used by another action widget 
inside the same trigger (button) widget. You would need a 2nd button for 
the 2nd stage. Hopefully someone will pop up and prove me wrong ;-)

On Wednesday, December 11, 2019 at 3:28:42 PM UTC-8, Alan Aldrich wrote:
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a6aecbe7-8c63-431c-98eb-ec296433d0af%40googlegroups.com.

Reply via email to