I'm trying to convert a macro that selects from a list that resides in a field:
\define sometest(testname,testfield)
<$set name=subtest value=$testfield$>
<$select tiddler="$testname$" field=<<subtest>>>
<$list filter="[[$testname$]get[plist]]">
<$list filter=<<currentTiddler>>>
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
</$list>
</$list>
</$select>
</$set>
\end
<<sometest LumbarKemps ips>>
to a similar one that takes the list of possibilities from a dictionary tiddler:
\define sometest2(testname,testfield)
<$set name="tests" value="testDictionary">
<$set name="subtest" value=$testfield$>
<$select tiddler="$testname$" field=<<subtest>>>
<$list filter="[<tests>indexes[]sort[title]]">
<$list filter=<<currentTiddler>>>
<option value=<<currentTiddler>>><$text text=<<currentTiddler>>/></option>
</$list>
</$list>
</$select>
</$set>
\end
----
<<sometest2 LumbarKemps ips>>
but the problem is the select widget takes the name of the pair instead of the value of the pair
----
in the original, the fieldname is plist and its value is a list of the options shown in the select box (same as the value of the value pair below)
in the dictionary version, the pair is
LumbarKemps: neg [[thoracic pain]] [[lumbar pain]] [[sacroiliac pain]] [[gluteal pain]] [[ischial pain]] [[thigh pain]] [[knee pain]] [[leg pain]]
Does anyone know how to get the actual list into the select widget instead of the name of the pair?
Thanks,
Dave