I am unable to pass a value to a macro when that value has been generated by <$count>.
A demo of the problem:
http://cpashow.tiddlyspot.com/#What_s_wrong_with_thisHere's the code:
\define getCountOfItemsInList(tiddlerName, fieldName)
<$count filter="[list[$tiddlerName$!!$fieldName$]]" />
\end
\define generateSelectWithNumberOptions(xnum)
<br/>''executing generateSelectWithNumberOptions(xnum="$xnum$")''
<$select>
<$list filter="1 2 3 4 $xnum$">
<option value=<<currentTiddler>> >
<<currentTiddler>>
</option>
</$list>
</$select>
\end
Can I generate a number using a macro that calls <$count>?
<<getCountOfItemsInList "What_s_wrong_with_this" "test">>
(Yes)<br/>
Can I generate a select containing a list of options by passing a number?
<$macrocall $name="generateSelectWithNumberOptions"
xnum=6
/>
(Yes)<br/>
Can I generate a select containing a list of options by passing a value from a macro that calls <$count>?
<$macrocall $name="generateSelectWithNumberOptions"
xnum=<<getCountOfItemsInList "What_s_wrong_with_this" "test">>
/>
(No)<br/>