22.1.6 Global Object-Based Defaults

It is possible to set a global default for an object that will be applied to all attributes referencing this object. When a new instance of an object is being created which has an attribute referring to another object via its Values property, if that attribute has not been specified and you want it to default to the global default, you will need to set the DefaultValue attribute for the referenced object to the desired value.

Example 8. Setting a system-wide simple default organization called general
$ goldsh Object Modify Name==Organization DefaultValue=general
Successfully modified 1 object

Thereafter each (non-association) object which has an attribute with a Values property set to @Organization will default to general if that attribute is not specified. Perhaps we would want the default value to be taken for the organization when a new project is created.

$ goldsh Attribute Modify Object==Project Name==Organization Values=@Organization
Successfully modified 1 attribute

See Local Attribute-based Defaults for more information about setting default values for attributes. See Usage Record Property Defaults for more information about setting default values for usage record properties.

(Undefined variable: MyVariables.!CopyrightInfo!)