I almost have the best case senario (a separate tiddler with appropriate 
data in fields):

\define race(event:"event")
<table>
<$list filter="[tag[swimmers]sort[title]]">
<tr><td><$link><$view field="title"/></$link></td><td><$edit-text 
tiddler='$event$' field='<$view field="title"/>' /></td></tr>
</$list>
</table>
\end

that macro works, e.g. <<race event:"50mFreestyle">> will construct the 
table, but I can't seem to get the swimmers names as the field name in the 
new tiddler [[50mFreestyle]]

the new tiddler in this case gets made with a field called "<$view 
field="title"/>"


I also tried with single and double curly brackets {{ }} and that didn't 
work either.

I suspect the problem is that since I specified the tiddler name just 
before it the following <$view field="title"/> is not the same as the 
previous <$view field="title"/> that wrote the swimmers name in the 
previous table cell to the left (or at least that may be part of the 
problem)

Do I have to set a variable somehow in the first cell to be able to use it 
in the adjacent cell?



I tried this (didn't work):

\define race(event:"event")
<table>
<$list filter="[tag[swimmers]sort[title]]">
<tr><td><$link><$view field="title"/></$link><$set name="swimmer" 
value=$title$></set></td><td><$edit-text tiddler='$event$' 
field=$(swimmer)$ /></td></tr>
</$list>
</table>
\end

and this didn’t work either:

\define race(event:"event")
<table>
<$list filter="[tag[swimmers]sort[title]]">
<tr><td><$link><$view field="title"/></$link></td><td><$edit-text 
tiddler='$event$' field="[tag[swimmers]sort[title]]"/></td></tr>
</$list>
</table>
\end


Any suggestions?

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5ee7840-d594-4247-b01a-065349c4be5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to