22.2.5 Local Attribute-Based Defaults

It is possible to set a specific default for an object attribute that will be applied when an instance of that object is created but the attribute is not specified. This type of default is intended for attributes which do not refer to another object or which should vary from the object global default. This default value is assigned to an attribute via the DefaultValue attribute. When a new instance of the associated object is created, if a property is not specified for the attribute, the specified default value will be used. A local attribute default will have precedence over a global object default.

goldsh Attribute Delete Object==<Object Name> Name==<Attribute Name> [ShowUsage:=True]

Example 15. Setting a default organization just for the project object
$ goldsh Attribute Modify Object==Project Name==Organization DefaultValue=university
Successfully modified 1 attribute
Example 16. Setting a default phone for the user object
$ goldsh Attribute Modify Object==User Name==Phone DefaultValue="\"NoPhone\""
Successfully modified 1 attribute

See Global Object-based Defaults for more information about setting default values for objects.

See Usage Record Property Defaults for more information about setting default values for usage record properties.

(Undefined variable: MyVariables.!CopyrightInfo!)