Let me pose my question more directly. I assume the answer is obvious to
the more experienced hands.
The following code is not working correctly and I don't understand why. I
would like the macro FieldChoice to return a select widget with a list of
captions taken from the dictionary tiddler FieldsData.
I get the Select that works but all the captions match the one for the
default entry in FieldThing. The problem appears to be passing the
parameter fieldName from FieldChoice to FieldThing. The code below is just
one of my many failed attempts.
\define FieldChoice(name:"title")
<$select field="field1" default='title'>
<option value="">none</option>
<$set name="currentTiddler" value="FieldsData">
<$list filter="[all[current]indexes[]]" variable="fieldName">
<option value=<<fieldName>>><<FieldThing $(fieldName)$>>
</option>
</$list>
</$set>
</$select>
\end
\define FieldThing(name:"current_address")
{{FieldsData##$name$}}
\end
<<FieldChoice field1>>
Can someone tell me what I've done wrong and how to do this correctly?
--
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/3b09ae62-8dbc-4e9f-b739-5e66583fe929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.