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_this

Here'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?
        <<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?
        <$macrocall $name="generateSelectWithNumberOptions" 
                xnum=<<getCountOfItemsInList "What's wrong with this?" 
"test">> 
        />
    (No)<br/>

-- 
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/528080b3-19f7-4b09-9f5f-c1584bbce133%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to