dorich
(Richard Bullen)
August 29, 2021, 3:20pm
1
Is there a way to display an attribute on a note in the timeline view?
I thought I had done this previously but perhaps not. Certainly I can’t find any way to create this display.
As an example the illustrations in Marks Reference document show dates as part of the note presentation.
Thanks
satikusala
(Michael Becker)
August 29, 2021, 4:48pm
2
Yes. What you’ll want to do is use action code to set your display attribute. It is a good practice to create a $DisplayExpressionCache user attribute. Set $DisplayExpress=$DisplayExpressionCache. Then, in your note (or prototype) set create an edict, something like this:
$DisplayExpressionCache=$Name + " ["+$MyDate.format(“l”)+"]";
Where $MyData is the date you want displayed, could be $Created and .format is specifying the date format you wan to show.
eastgate
(eastgate)
August 29, 2021, 5:37pm
3
DisplayExpressionCache
makes sense here if your timeline has hundreds of elements, or if the expression is hard to construct.
For a small timeline and a simple display expression, I think you can just use $DisplayExpression.
1 Like