This version is out of date, covering development from v8.0.0 to v8.x.x. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v8 Icon

Setting/resetting an attribute's default

What if the default value assigned to an attribute, 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 Info view.

Set/add 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. If you have already altered the default and need to check the listing, either use aTbRef's listings or open a new document and via the same location in the Inspector to see he 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.

It is not possible to set attribute defaults via action code. This task can only be one manually via the above method or by direct editing of the XML code outside Tinderbox using a text editor.



A Tinderbox Reference File : Attributes : Setting/resetting an attribute's default