Search in the output of a Transclude Tiddlers (JavaScript macro & TemplateTiddler)

86 views
Skip to first unread message

Mohamed Amin

unread,
Sep 7, 2019, 10:38:35 PM9/7/19
to TiddlyWiki
Hello,

Appreciate your support as my head is spinning now ;)

My problem here is that I don't know how to assign some text (transcluded from a JavaScript & TemplateTiddler) to a Variable.

Attached is an Experimental example (a simple Account Management) :-
1- It has some "Account Tiddlers" which contains ONLY fields (Acc01, Acc02, ...... Acc05)
2- All "Account Tiddlers" are "Transcluded" using a Template Tiddler "accTemp" (with {{||accTemp}})
3- There are 2 JavaScrip Macros (TW5MyJavascriptMacro001 & TW5MyJavascriptMacro002) to calculate "Age of current Password" and different "Worning Message"

Till this point everything is working fine, 

What I failed to do is to search through the "Account Tiddlers", for example "Query 01" return a result when I search for "Acc03" , while the other Queries are NOT.

I tried to use SetWidget, WikifyWidget and Macro but I failed, so please check the attached file and let me know what I miss there.

Thanks in Advance
 
TW5Accounts.html

Mohamed Amin

unread,
Sep 8, 2019, 8:19:09 AM9/8/19
to TiddlyWiki
OK, I figure it out, it seem that there was a typo or syntax error in my "Wikify widget call",
thanks to <<dumpvariables>> Macro as it was my main tool for debugging this issue.
Reply all
Reply to author
Forward
0 new messages