Can’t figure this one out. The situation - I have two notes e.g. note1 and note2 each with the same title e.g. Note. note1 has a user attribute “myattribute1” set to some value1. note2 has a user attribute “myattribute2” set to some value2.
My question is how to set update note1 with all the defined user attributes in note2 e.g. effectively merging all user values which are non-null in one of the notes. It’s trivial in this case since I already know the name of the attributes ahead of time. I can use a stamp.
What about the general case in which I need to run through all user attributes for note 1 and note2, check whether they have a value or not, and update one of the notes accordingly.
I’m probably approaching this is the wrong (programming) way but an indication of how to approach the problem would be helpful.
The background is that I have notes in various parts of the document referring to the same concept (satellite parameter in my case) having imported several small spreadsheets of parameters in different locations. I would like to merge/set attributes in a single note defining the concept (and do away with the original).