If you survived the horrific title of this topic, please consider this problem:
I have a “projectList” note with a list-type attribute named $project, with content “p1;p2;p3”;
I have 3 notes to be plotted on a timeline:
- “event1” which has “p2” in its $project attribute;
- “event2” which has “p3” in its $project attribute;
- “event3” which has “p1” in its $project attribute;
the timeline is an agent that collects the three events, and the agent automatically collects as $TimelineBandLabels the terms “p1;p2;p3” from the “projectList” note;
What I am trying to do is to get each event to get its $TimelineBand automatically depending on its $project attribute. So “event1” would get “1”, “event2” would get “2” and “event3” would get “0”.
The logic is each event would lookup its own $project in the $project attribute of the “projectList” and get its value from there. I think it’s the only way to bypass $Timeline Band only accepting numeric values and not strings. I’m trying with collect_if / find / and list/set.at operators, so far with no success.
All help appreciated!