Sorry for the basic question. After a long time without TBX I’m getting onto it again and forgot some basics. Issues of “scope” are the ones more difficult to me.
I have several original notes (T1,T2,T3 on the first TASKS container; T4 on the second TASKS container) and I’d like AGENT1 to retrieve only T1,T2,T3, and AGENT2 to only retrieve T4 – i.e. the notes inside the TASKS container, child of the agent’s parent, which have a given $prototype.
I’m trying with the query
descendedFrom(parent(that)) & $Prototype==“somePrototype”;
but the two agents collect all notes. Help appreciated. I really need to grasp queries and scopes.