Tinderbox Forum

Getting a note's grandparent in an agent

I have an agent that collects notes based on text. So far so good, but I want to have the table in the agent (in map view) display an attribute of the grandparent of the notes it collects. When I use parent or grandparent in the table, I get the parent or grandparent of the alias that is in the note (i.e., the parent is the agent itself) rather than the real parent. I’m sure its documented someplace, but I can’t seem to find an example.

What you want is “the grandparent of the original note”. So

$MyNumber(grandparent(original))

is probably the attribute reference you’re seeking.

1 Like

Now you know the correct designator for this task, here’s a bit more on designators as a whole.

1 Like

Thanks! I completely missed designators somehow.

Perfect! That is exactly what I was looking for.