First off, how does one make an attribute appear in the top of the note, depending on the selection of another attribute?
I have an attribute called $domain, which is a set with two values
if one of the values is chosen, I would then like to display $username
Next, when in a view that shows all these notes, how does one get the attributes shown at the top of the note, also shown in the overview of all the notes please.
The Displayed Attributes table is in the right-hand text pane, and always shows the attributes of the selected note.
If the table is not displayed because there aren’t any displayed attributes, there’s a button in the upper right of the text pane that lets you choose the attributes you want to display.
Often, the value of $DisplayedAttributes is depends on what kind of note this happens to be, and is inherited from a Prototype. So, for example, a Reference might have $Author and $Title, and a Product might have a $Price. But let’s not get ahead of ourselves…
the button for calling the the Displayed Attributes pop-over is illustrated at top right of the image here.
Tinderbox stores the items of the Displayed Attributes table, i.e. the list of attributes displayed in the attribute DisplayedAttributes.
Most settings or properties in Tinderbox are stored as Attributes and you can create your own, as you have done with your own domain attribute. Also: attribute naming conventions.
To better understand the concept of attributes, prototypes and inheritance, you may find this article of use. You may then find it useful to read this section of aTbRef.