Sorry if this is complicated (seems that way to me), but I have a question 
about using macros in remote tiddlers that are transcluded to change field 
content locally.  


There are three layers: the macro tiddler, the test tiddler which calls 
upon the macro, and the date tiddler that want's to record the test, but 
uniquely in today's tiddler.

Lets say I have a tiddler just named as today's date: [[2017-03-20]]


In it I have this transclusion: {{Lumbar Kemps}} which has this content:

<<s.test "Lumbar Kemps" left>>

which refers to this macro pair in another macro tiddler tagged with 
$:/tags/Macro

\define s.test.result(mytestname,myresult) 
<$transclude tiddler="$mytestname$ Dxs" index="$myresult$"/> 
\end 

\define s.test(testname,testfield) 
<$select tiddler="""$(currentTiddler)$""" field="""$testname$-$testfield$"""
> 
<$list filter="[list[testDictionary##$testname$]]"><!-- gets the list of 
options for this test--> 
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option> 
</$list> 
</$select> 
<$set name="result" value={{$(currentTiddler)$!!$testname$-$testfield$}}> 
<$macrocall $name=s.test.result myresult=<<result>> mytestname="$testname$" 
/> 
</$set> 
\end 

What I want to happen is for the $(currentTiddler)$ in the select widget to 
be "2017-3-20", not "Lumbar Kemps", but that's not what's happening (the 
results are being recorded in [[Lumbar Kemps]]).

Is there a way to make this work the way I want it to?


Thanks,

- Dave

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d69dd966-12ae-43cb-9b08-203979b22190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to