What if the document's default value assigned to an attribute—either system or user—is not what is desired? Can it be changed globally across the current TBX document so that all notes inheriting that attribute use a different value? Yes, it is possible by using the Document Inspector's System or User tab.
Setting a new value. Select any note, it does not matter which, and open the Document Inspector's System tab. Locate the attribute and type in the new value.
Re-setting the app-derived default value. If you have already altered the default and do not recall the original value, you will first need to check the for the value to reapply. Either use aTbRef's listings or open a new document and via the same location in the Inspector, see the as-new default value. This can then be noted and used in the original document.
CAUTION: take special care when editing system attribute defaults that you set a valid and sensible value, lest you cause the application and/or document to become unstable. The same holds true for altering the defaults for user attributes after first use; ensure no existing code depends on the original default value for correct function. If an unsuitable value has been set, a further corrective option is direct editing of the XML code outside Tinderbox using a text editor: find the
element for the attribute and edit the value of the default
element attribute.
It is also possible to set an attribute's document-level default via the action code, using the attribute() operator.
See also—notes linking to here:
- Attribute Listings
- Attributes
- Using attributes as global variables or constants
- Automatic Geocoding
- Checking or resetting old System attribute defaults
- Attribute inheritance of preferences and settings
- Spreadsheet Import: CSV and Tab-Delimited Text
- Setting up for Tab-Delimited Import
- Getting and setting attribute values and inheritance