Okay, I feel like I'm banging my head against the wall - why is this not 
working?

\define s.test.result()
 <$transclude tiddler="TempTest" field="tempfield"/>
\end

\define s.test(testname,testfield)
<$set name="tests" value="testDictionary"><!-- the whole list of all tests 
-->
<$set name="subtest" value=$testfield$><!-- name of the field like "lopp" 
to put finding into-->
<$select tiddler="TempTest" field="tempfield"><!-- this selection puts 
findings into this tiddler and field-->
<$list filter="[<tests>getindex[$testname$]]"><!-- gets the list of options 
for this test-->
<$list filter=<<currentTiddler>>><!-- this and next line for breaking up 
list for selection(?)-->
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
</$list>
</$list>
</$select>
tiddler="$testname$ Dxs" index="<$macrocall $name='s.test.result'/>" <!-- 
A-->
<$transclude tiddler="$testname$ Dxs" index="<$macrocall $name=
's.test.result'/>"/><!--B-->
</$set>
</$set>

\end

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


The select box thing works fine, but my problem is the difference between <!-- 
A--> and <!--B-->


the "A" part correctly prints this out: 
tiddler="Lumbar Kemps Dxs" index="leg pain"

which is the guts of the transclusion I want to do, but part "B" does 
nothing, whereas outside of the macro, if I put that content in it, it 
would work correctly.

I thought maybe I'd have to have the main select option thing outside of a 
macro and just transclude that tiddler wherever I need it, but then how 
could I pass the parameters to it in that case?

Any ideas?






>

-- 
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 post to this group, send email to [email protected].
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/6d7121bb-7412-4955-a0df-f8fdbba87be1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to