Each of my “notes” has an attribute, Sectors, which is a set containing 0 or more stock sectors pertaining to the note. I would like to define a stamp that redefines a note’s $Text by prepending the set, Sectors, to $Text. I’ve been experimenting with a Stamp action such as:
$Text=$NoteDate.format(l) + “\n” + $Sectors.format(??) “\n” + $Text
For ??, I’ve tried ", " but the attribute value doesn’t add to the revised Text. I’ve not even sure using .format is the right approach. If I remove the $Sectors… part, then the note is correctly changed to, say,
2024-01-10
A test note.
where “A test note.” was the original $Text value for the note.
So, how do I convert a set/list to a string? I will have two such set attributes to prepend along with the NoteDate.
Background: I have some agents that gather notes pertaining to stock data. Each agent includes the Rule:
$Text=collect(descendants,$Text).format(“\n----------\n”)
and the resulting Text that the agent displays will be copy & pasted to a Filemaker database, so I want the NoteDate and the set attributes to be part of each note and thus included in the rule’s collection.
Thanks for any insight you may provide!