| 1. |
Explain Default Aspects? |
|
Answer» Even though aspects are not automatically tied to object types sometimes we may have a NEED to do just that (often for convenience). For example, we may have an existing type called dq_loan_doc and we may want all of its objects (and of its subtypes) to have an aspect dq_web_viewable attached. If an aspect is ASSOCIATED with an object type, the aspect is automatically attached to each new object of the specified object type. Such an aspect is called a DEFAULT aspect for the specified type. Of COURSE, this aspect can still be attached to objects of other types (SUBJECT to the restrictions mentioned earlier). Default aspects for an object type are recorded in dmi_type_info.default_aspects for the type. Even though aspects are not automatically tied to object types sometimes we may have a need to do just that (often for convenience). For example, we may have an existing type called dq_loan_doc and we may want all of its objects (and of its subtypes) to have an aspect dq_web_viewable attached. If an aspect is associated with an object type, the aspect is automatically attached to each new object of the specified object type. Such an aspect is called a default aspect for the specified type. Of course, this aspect can still be attached to objects of other types (subject to the restrictions mentioned earlier). Default aspects for an object type are recorded in dmi_type_info.default_aspects for the type. |
|