- I am working with a large TBX document which I want to explode into smaller notes.
- I know how to use the action function to assign a prototype to each of the exploded notes.
- I want to populate one of the prototype attributes in each of the notes.
- How is this best done? Explode action function or something else?
Do you mean “one of the attributes which the prototype declares to be a displayed attribute?”
Or, perhaps, “one of the attributes to which the prototype assigns a value?”
And what value are you assigning?
The explode action is certainly one obvious place to put the action. If it’s something you expect to use regularly, you might wrap the work in a function (or a stamp), and have the action invoke the stamp.
One of the attributes which the prototype declares to be a displayed attribute. The attribute in question is $Source. As all the exploded notes are from a single source. I want each of them to have a shorthand source reference for citation purposes.
The easier approach would be to do this:
You use “grandparent” as the note you’re exploding will be/is the grandparent to the newly created exploded note. You can any attribute value for the original note, e.g., $Name(grandparent), $ID(grandparent), $SomeOtherAttribute(grandparent), etc. There are other methods.
More on the grandparent designator.