On Wednesday, September 16, 2020 at 11:37:09 PM UTC-7, Bob Jansen wrote: > > I have three tiddlers, tag=Names, TK5, TK6 and TK7. Each has a field, > artwork_id but only TK5 has artwork_id=TK1. the other two have an empty > field. > I have a tiddler, TK1 which has a field artwork_id with value TK1. > TK1 calls a macro <<is_purchased_by {{!!artwork_id}} >> > > The macro is: > \define is_purchased_by(artworkID) > <$wikify name="artID" text=[$artworkID$] > > <$log $message="hello world" myvalue=artID /> > <$list filter="[[$artworkID$]!is[blank]]" variable="not_blank"> > <$list filter= > "[tag[Names]!tag[Index]!match<currentTiddler>search:artwork_id[$(artID)$]]" > > > • <$link to={{!!name_id}}><$view field="title"/> <$view field= > "person_name"/></$link><br/> > </$list> > </$list> > </$wikify> > \end >
1) You shouldn't need to wikify the $artworkID$ 2) In your second list filter, you reference $(artID)$ ... but that is incorrect, since the $(...)$ form of reference is only for variables that are defined *outside* of the current macro. 3) Try re-writing your filter like this: > <$list filter="[tag[Names]!tag[Index]!match<currentTiddler> > search:artwork_id[$artworkID$]]"> > -e -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/17b4f445-4523-4cd4-b2ee-de2fefdd595fo%40googlegroups.com.