Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread TW Tones
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]!matchsearch: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  <>
>>
>> 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]!matchsearch:artwork_id[$(artID)$]]"
>> >
>><$link to={{!!name_id}}><$view field="title"/> <$view field=
>> "person_name"/>
>>
>> 
>> 
>> \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
>> 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 
> tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/17b4f445-4523-4cd4-b2ee-de2fefdd595fo%40googlegroups.com
>  
> 
> .
>
>
> -- 
> 
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/28705e63-10a6-4dae-99c8-af2ac039b261o%40googlegroups.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr Bob Jansen
Saq,

Ah, clever. Did not know about these templates.

Will try tomorrow.

Thanks for your help.

BobJ

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
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://www.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"

> On 17 Sep 2020, at 22:56, Saq Imtiaz  wrote:
> 
> You can further simplify things a lot by using custom view templates, so you 
> don't need to manually call each macro etc in each artwork tiddler and each 
> person tiddler.
> 
> For example, to get the same code applied to what you see for each Artworks 
> tiddler,  create a tiddler with this content and give it the tag 
> $:/tags/ViewTemplate:
> 
> <$list filter="[all[current]tag[Artworks]]" variable=null>
> 
> 
> 
> 
> {{!!artwork_title}}, {{!!artwork_medium}}, {{!!artwork_size}}, 
> {{!!artwork_yearofcreation}}
> 
> 
> ''This artwork has been exhibited in the following exhibitions''
> 
> 
> <$macrocall name="is_exhibited_by" artwork_id={{!!artwork_id}} />
> 
> 
> ''This artwork has been consigned in the following consignments''
> 
> 
> <$macrocall name="consigned_to" artwork_id={{!!artwork_id}} />
> 
> 
> ''This artwork has been purchased by'' 
> 
> 
> <>
> 
> 
> 
> The very first list widget in that code determines which tiddlers have that 
> template applied to them.
> 
> 
> -- 
> 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 
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/babdeba5-ddb1-466a-a7de-595a14b1f101o%40googlegroups.com.

-- 
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/29A78999-37C2-4BFF-AF23-48824244026C%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Saq Imtiaz
You can further simplify things a lot by using custom view templates, so 
you don't need to manually call each macro etc in each artwork tiddler and 
each person tiddler.

For example, to get the same code applied to what you see for each Artworks 
tiddler,  create a tiddler with this content and give it the tag 
$:/tags/ViewTemplate:

<$list filter="[all[current]tag[Artworks]]" variable=null>




{{!!artwork_title}}, {{!!artwork_medium}}, {{!!artwork_size}}, 
{{!!artwork_yearofcreation}}


''This artwork has been exhibited in the following exhibitions''


<$macrocall name="is_exhibited_by" artwork_id={{!!artwork_id}} />


''This artwork has been consigned in the following consignments''


<$macrocall name="consigned_to" artwork_id={{!!artwork_id}} />


''This artwork has been purchased by'' 


<>



The very first list widget in that code determines which tiddlers have that 
template applied to them.

-- 
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/babdeba5-ddb1-466a-a7de-595a14b1f101o%40googlegroups.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr. Bob Jansen

Colleagues,

I should have added, if you are going to play with the file, the artwork 
that shows the wrong behaviour is TK1 and no other. The others don't 
have the correct macrocall in them.


The list appears under the text, "*This artwork has been purchased by*"

It should only show TK5.

bobj

On 17/9/20 10:12 pm, Saq Imtiaz wrote:

Try:
<$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
   <$list 
filter="[tag[Names]!tag[Index]!matchcontains:artwork_id[$artID$]]">

      <$view field="person_name"/>
  


If you still have issues, it would be a lot easier to assist if you 
could post a copy of your file where we can test things.




--

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bb93d1de-14fa-9a93-1441-f273a3d76694%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Saq Imtiaz
Bob,

Try entering this directly in the TK1 tiddler:

<$list filter="[{!!artwork_id}!is[blank]]" variable="not_blank">
   <$list 
filter="[tag[Names]!tag[Index]!matchcontains:artwork_id{!!artwork_id}]">
  <$view field="person_name"/>
  


On Thursday, September 17, 2020 at 2:34:30 PM UTC+2, Dr. Bob Jansen wrote:
>
> Sorry Saq, doesn't work either.
>
> You can download a copy of the TW from 
> http://cultconv.com/TLSConsignment.html
>
> bobj
>
> On 17/9/20 10:12 pm, Saq Imtiaz wrote:
>
> Try: 
> <$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
><$list 
> filter="[tag[Names]!tag[Index]!matchcontains:artwork_id[$artID$]]">
>   <$view field="person_name"/>
>   
> 
>
> If you still have issues, it would be a lot easier to assist if you could 
> post a copy of your file where we can test things.
>
>
> -- 
> 
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9e1cfbeb-05e8-45a0-89ba-cef9f62a6da2o%40googlegroups.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr. Bob Jansen

Sorry Saq, doesn't work either.

You can download a copy of the TW from 
http://cultconv.com/TLSConsignment.html


bobj

On 17/9/20 10:12 pm, Saq Imtiaz wrote:

Try:
<$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
   <$list 
filter="[tag[Names]!tag[Index]!matchcontains:artwork_id[$artID$]]">

      <$view field="person_name"/>
  


If you still have issues, it would be a lot easier to assist if you 
could post a copy of your file where we can test things.




--

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0308ca21-d7fa-b2d6-7268-a40f001cbd54%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Saq Imtiaz
Try:
<$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
   <$list 
filter="[tag[Names]!tag[Index]!matchcontains:artwork_id[$artID$]]">
  <$view field="person_name"/>
  


If you still have issues, it would be a lot easier to assist if you could 
post a copy of your file where we can test things.

On Thursday, September 17, 2020 at 2:02:36 PM UTC+2, Dr. Bob Jansen wrote:
>
> Colleagues,
>
> Experimenting with the contains operator but having trouble with how to 
> write the operator string correctly.
>
> Am changing my <$list> structure to
>
> <$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
><$list filter="[tag[Names]!tag[Index]!match">
>   <$list filter="[contains:artwork_id[$artID$]]"> <$link 
> to={{!!name_id}}><$view field="title"/> <$view 
> field="person_name"/>
>   
>   
> 
>
> Have tried other formats around the artID parameter but nothing returns 
> any results.
>
> What should the correct contains operator expression in this case be?
>
> 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  <>
>>
>> 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]!matchsearch:artwork_id[$(artID)$]]"
>> >
>><$link to={{!!name_id}}><$view field="title"/> <$view field=
>> "person_name"/>
>>
>> 
>> 
>> \end
>>
>
>
>
> -- 
> 
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4d18a69a-f395-480e-9c76-7cc574b5a82ao%40googlegroups.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr. Bob Jansen

Colleagues,

Experimenting with the contains operator but having trouble with how to 
write the operator string correctly.


Am changing my <$list> structure to

<$list filter="[[$artworkID$]!is[blank]]" variable="not_blank">
   <$list filter="[tag[Names]!tag[Index]!match">
  <$list filter="[contains:artwork_id[$artID$]]"> <$link 
to={{!!name_id}}><$view field="title"/> <$view 
field="person_name"/>

  
  


Have tried other formats around the artID parameter but nothing returns 
any results.


What should the correct contains operator expression in this case be?

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  <>

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]!matchsearch:artwork_id[$(artID)$]]">
<$link to={{!!name_id}}><$view field="title"/><$view
field="person_name"/>



\end
|





--

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/37cf224f-3471-b4fa-b593-0e16034fc32f%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr. Bob Jansen

Colleagues,

just some more experimenting.

If I put something into the artwork_id field of TK6 and TK7, for 
example, "TK2", the result displayed remains TK5, TK6 and TK7. That 
implies the problem is that search is not correctly matching the field 
content with the search 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  <>

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]!matchsearch:artwork_id[$(artID)$]]">
<$link to={{!!name_id}}><$view field="title"/><$view
field="person_name"/>



\end
|





--

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb38a9b5-6b42-9f94-57fb-3390fa1809fd%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr. Bob Jansen

Eric,

that doesn't work, no results returned.

Have also tried

<$list 
filter="[tag[Names]!tag[Index]!matchsearch: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  <>

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]!matchsearch:artwork_id[$(artID)$]]">
<$link to={{!!name_id}}><$view field="title"/><$view
field="person_name"/>



\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]!matchsearch: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 
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 
.


--

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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6e2f301c-1fa2-7955-01d2-f27cc437a23b%40gmail.com.


Re: [tw5] Re: search widget odd behaviour

2020-09-17 Thread Dr Bob Jansen
Saq,

Thank you for your email and comments.

The issue of one-to-many links is replicated in other relationships and so the 
issue still need to be resolved. Also, in the case of a print, there is more 
than one buyer of an artwork and thus we need the search facility.

The issue of the macrocall has been addressed through the wikify statement but 
now that I have the basics of the macro working may revert back to using a 
macrocall instead of the <<..>> syntax.

As for different unique ID codes, I have considered this and may convert. 
However it will not make much difference to the user as the detailed display of 
any tiddler will make it immediately obvious what type of content is being 
displayed, artwork, person, consignment, exhibition, etc.

Bobj

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
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://www.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"

> On 17 Sep 2020, at 18:19, Saq Imtiaz  wrote:
> 
> Hi Bob,
> 
> A few things to consider here.
> 
> Firstly, when you want to pass an indirect parameter (via text reference) to 
> a macro, you cannot use the form:
> <>
> 
> Instead, you need to use the macrocall widget:
> <$macrocall $name="is_purchased_by" artWorkID={{!!artwork_id}} />
> 
> Please see https://tiddlywiki.com/#MacroCallWidget for details.
> 
> Also, I think you will have an easier time of it if you have a field "buyer" 
> in all the artwork tiddlers which contains an ID for the buyer, and the 
> tiddlers describing buyers have their ID stored in a field "person_id". 
> 
> Then in a Person tiddler to see all the artwork they have bought:
> <$list filter="[buyer{!!person_id}]">
> <$view field="artwork_title"/>
> 
> 
> And in an artwork tiddler to see the buyer's name:
> <$text text={{{ [ person_id{!!buyer}get[person_name] }}} />
> 
> This should be easier than dealing with a field in artwork_id field in buyers 
> that is supposed to contain multiple values (which I assume is the current 
> structure).
> 
> Lastly, it might be worth considering to have different name prefixes for 
> tiddlers describing People and Art, e.g. Person P1 and Artwork TK1. The idea 
> being to be able to distinguish at a glance from the title if we are looking 
> at a tiddler describing a person or an artwork.
> 
> Hope this helps,
> Saq
> -- 
> 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 
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/32647120-52ab-40f9-b001-5c50bc97e9d5o%40googlegroups.com.

-- 
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/DC96A531-0DA0-4A6B-A39C-55A232EE2CAD%40gmail.com.