Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Linking between notes with matching attributes (Read 1456 times)
B.Moreira
Full Member
*
Offline



Posts: 71

Linking between notes with matching attributes
Jun 25th, 2015, 7:17pm
 
Still grasping the basics of TBX, help really appreciated!
I am trying to link, in the map view, "Authors" to their "Quotes".

"Authors" notes and "Quotes" notes are in different containers and are gathered by an agent "YYY" as aliases.

I would like the aliases of "Authors" linkTo every aliases of "Quotes" where attribute $Name of the Authors' (origin of link) matches the attribute $Author of the Quotes (destination of link).

(Hope I'm being clear)

For ex. I have an Author alias with $Name = "Author1" and a Quote alias with $Author = "Author1" inside the "YYY" agent.

If I try the following rule in the Author alias' it works:

Code:
inside("YYY") & linkTo(find(inside("YYY") & $Author="Author1")) 



But if I try to reference the $Name of the origin of the link, it doesn't (I must be getting the reference behavior wrong):

Code:
inside("YYY") & linkTo(find(inside("YYY") & $Author=$Name)) 



All help appreciated, it must be a simple solution but I'm not reaching it...
Back to top
 
 
  IP Logged
B.Moreira
Full Member
*
Offline



Posts: 71

Re: Linking between notes with matching attributes
Reply #1 - Jun 26th, 2015, 2:38am
 
Found the solution in the manual: $Name(that). I had used $Name(this) but they are for different things. Hurray.  Smiley
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Linking between notes with matching attributes
Reply #2 - Jun 26th, 2015, 3:05am
 
Glad you're sorted out.  For later readers, a bit more on the 'that' designator.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print