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:
<<is_purchased_by {{!!artwork_id}} >>

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"/>
</$list>

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 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/32647120-52ab-40f9-b001-5c50bc97e9d5o%40googlegroups.com.

Reply via email to