Perfect! I was not thinking of the subfilter expression as a filter 
expression and was doubling my brackets [[{{ }}]] instead of [{ }] - rookie 
mistake. Note that while I put <<>> in my code above, that was a leftover 
from a previous dual-macro approach (whoops)

Thanks Mark!!

On Friday, May 18, 2018 at 3:20:55 PM UTC-4, Mark S. wrote:
>
> This seems to work
>
> \define addmember()
> <$tiddler tiddler="$:/temp/newproject"><$action-listops $field="members" 
> $subfilter="[{!!newmember}]"/></$tiddler>
> \end
>
> Member List: {{$:/temp/newproject!!members}} + <$select tiddler=
> "$:/temp/newproject" field="newmember" actions=<<addmember>>><$list filter
> ="[tag[People]]"><option>{{!!title}}</option></$list></$select>
>
>
> HTH
> -- Mark
>
> On Friday, May 18, 2018 at 11:11:57 AM UTC-7, Stobot wrote:
>>
>> Hello all,
>>
>> None of my usual tricks are helping me solve this problem. I want to have 
>> a <$select> list names (with spaces) and when the user chooses from the 
>> list, it's appended to a list - with the proper [[ ]] characters around it. 
>> It's the last [[ ]] part that's giving me problems. Normally I'd do a 
>> <$set> before the macro so I could pass to the macro to do the text 
>> substitution, but the text comes from the value of the <$select> itself, so 
>> there's nowhere I can get "in-between" to put that code... I'm sure I'm 
>> missing something easy here.
>>
>> \define addmember()
>> <$action-listops $tiddler="$:/temp/newproject" $field="members" 
>> $subfilter=[[<<newmember>>]]/>
>> \end
>>
>> Member List: {{$:/temp/newproject!!members}} + <$select tiddler=
>> "$:/temp/newproject" field="newmember" actions=<<addmember>>><$list 
>> filter="[tag[People]]"><option>{{!!title}}</option></$list></$select>
>>
>> Any ideas? Also related - there's no way to do an <$action-...> within a 
>> <$select> other than through the "actions=" parameter right? Like a 
>> standalone command that you'd do with a <$button><$action-.../></$button>?
>>
>

-- 
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/29be9c2e-2464-44cc-bf06-0689d5d50876%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to