In the meantime, what's the code to transcode from a data tiddler?
I tried this to no avail:
<$transclude tiddler="my tiddler" data="my data">
I also tried "value"
I just couldn't find any reference to anything besides the curly bracket method
I tried this to no avail:<$transclude tiddler="my tiddler" data="my data">
\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">><!-- A--> and <!--B-->
tiddler="Lumbar Kemps Dxs" index="leg pain"\define s.test.result()
<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'/>
<$set name="foo" value="<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'>"/>
foo is <<foo>> or $foo$ or $(foo)$.
\end
\define s.test(testname,testfield)
<$set name="mytestname" value="$testname$">
<$set name="mytestfield" value="$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="$testname$" field=<<subtest>>><!-- 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>
:<<s.test.result>>:
</$set>
</$set>
</$set>
</$set>
\end<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'/>" works the way its supposed to.
What I can't figure out is how to put that output into another variable. I'm used to using bash where I could do something like Var=$(cat somefile.txt) that would put the output of the cat command into the variable for use elsewhere.
I.e. the line "foo is <<foo>> or $foo$ or $(foo)$." doesn't do anything except "foo is or $foo$ or ."<$set name="foo" value="<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'>"/><$set name='foo' value={{$(mytestname)$!!$(mytestfield)$}}/>\define s.test.result()
<$transclude tiddler='$(mytestname)$' field='$(mytestfield)$'/>
<$set name="foo" value={{$(mytestname)$!!$(mytestfield)$}}>
foo is <<foo>> or $foo$ or $(foo)$.
</$set>
\end
\define s.test(testname,testfield)
<$set name="mytestname" value="$testname$">
<$set name="mytestfield" value="$testfield$">
<!--subtest isn't actually needed anywhere, just use $testfield$ -->
<!-- defining tests is also redundant because using the list operator takes care of that -->
<!-- use triple quotes around names like this to prevent trouble caused by names having " in them. -->
<$select tiddler="""$testname$""" field="""$testfield$"""><!-- this selection puts findings into this tiddler and field-->
<!-- Use the list operator so you only need one list widget here -->
<$list filter="[list[testDictionary##$testname$]]"><!-- gets the list of options for this test-->
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
</$list>
</$select>
:<<s.test.result>>:
</$set>
</$set>
\end\define s.test.result(mytestname,myresult)
<$transclude tiddler="$mytestname$ Dxs" index="$myresult$"/>
\end
\define s.test(testname,testfield)
<$select tiddler="""$testname$""" field="""$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={{$testname$!!$testfield$}}>
<$macrocall $name=s.test.result myresult=<<result>> mytestname="$testname$" />
</$set>
\end
<<s.test "Lumbar Kemps" "lopp">>