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] <mailto:[email protected]>. 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: bobjtls
http://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/6e2f301c-1fa2-7955-01d2-f27cc437a23b%40gmail.com.

Reply via email to