Bob,

Perhaps this helps, or not, I have not read this topic.

fieldname[value] works in any filter to return only tiddlers with a 
fieldname with the ""value", it allows you to create things which look like 
new filter operators;
eg
display-code[show] 

However if you start using multiple titles/values within a field the list 
operators, the enlist, listops and search become your friends.

Alternatively on the current tiddler use a list to extract each value from 
a field and each independantly.

Regards
Tones

On Thursday, 17 September 2020 20:51:34 UTC+10, Dr. Bob Jansen wrote:
>
> Eric,
>
> that doesn't work, no results returned.
>
> Have also tried 
>
> <$list 
> filter="[tag[Names]!tag[Index]!match<currentTiddler>search:artwork_id[$artID$]]">
>
> which doesn't work either, no results returned.
>
> Interestingly, Saq's comment about replacing the call to the macro with 
>
> <$macrocall $name="is_purchased_by" artWorkID={{!!artwork_id}} />
>
> also leads to no results returned.
>
> The only combination of macro calling and macro code that returns any 
> result, albeit the wrong one, is what I have provided.
>
> Is there any other way to scan a field looking for a specific text string?
>
> bobj
>
> On 17/9/20 7:37 pm, Eric Shulman wrote:
>
> 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)$]]"
>> >
>>       &bull; <$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 a topic in the 
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/cOSbp3Km6KU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/17b4f445-4523-4cd4-b2ee-de2fefdd595fo%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/17b4f445-4523-4cd4-b2ee-de2fefdd595fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> -- 
> --------------------------------
> Dr Bob Jansen
> 122 Cameron St, Rockdale NSW 2216, Australia
> Ph (Korea): +82 10-4494-0328
> Ph (Australia) +61 414 297 448
> Resume: http://au.linkedin.com/in/bobjan
> Skype: bobjtls
> KakaoTalk: bobjtlshttp://cultconv.com
>
> In line with the Australian anti-spam legislation, if you wish to receive no 
> further email from me, please send me an email with the subject "No Spam"
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/28705e63-10a6-4dae-99c8-af2ac039b261o%40googlegroups.com.

Reply via email to