Reference text of <<qualify>> macro result

90 views
Skip to first unread message

Vayu Asura

unread,
Aug 31, 2017, 11:13:36 AM8/31/17
to TiddlyWiki
I have editText widget referencing <<qualify>> macro resulting tiddler:

<$edit-text tiddler=<<qualify $:/IssueEdit>> placeholder="describe the problem" tag="textarea" />

I want to set the "issue" field of the tiddler it is transcluded in. And I can't find a way to reference the text field of resulting $:/IssueEdit--645974869 tiddler except for hardcoding it which is not an option.

I nee something like that:

<$button>
 <$action-setfield issue={{<
<qualify $:/IssueEdit>>}}/>
Set Issue
</$button>

Tried wrapping qualify result into a variable but it didn't work. And I can't nest widgets so explicit <$transclude> won't work either.

Vayu Asura

unread,
Sep 4, 2017, 2:34:18 PM9/4/17
to tiddl...@googlegroups.com
I've actually found a way: you can substitute the currentTiddler variable and reference fields as if default:

<$set name=currentTiddler value=<<qualify "Issue">>>

<$reveal type=match state={{!!myField}} text="">
myField of a generated tiddler is empty
</$reveal>
</$set>
Reply all
Reply to author
Forward
0 new messages