Customizing the metamodel > Keywords for USRPROPS > INIT_FROM_REFERER
  
INIT_FROM_REFERER
When a referent is created, the INIT_FROM_REFERER clause controls whether some properties of the referent are populated with values from the referer.
Syntax
You can specify one or more properties, the values of which are used to populate the referent. If multiple property pairs are specified, separate each pair with a comma.
INIT_FROM_REFERER { property_name:from_property_name,...}
property_name
Referent property that is to be populated.
from_property_name
The referer property from which the value is used to populate the specified referent property. If the name of the property is the same for both the referent and referer, you do not need to specify this parameter.
Example
In the following example, “Contains defs” in the YYY definition is populated with new XXX definitions. When created, the new XXX definitions “size” and “background info” properties are populated with the values in the “size” and “supporting information” of the YYY definition.
RENAME DEFINITION "User 1" TO "My Definition 1"
RENAME DEFINITION "User 2" TO "My Definition 2"

LIST "Sizes"
{
VALUE "small"
VALUE "medium"
VALUE "large"
}

DEFINITION "My Definition 1"
{
PROPERTY "size" { EDIT TEXT LISTONLYCOMBO LIST "Sizes" DEFAULT "large" }
PROPERTY "background info" { EDIT TEXT LENGTH 1000 }
}

DEFINITION "My Definition 2"
{
PROPERTY "size" { EDIT TEXT LISTONLYCOMBO LIST "Sizes" DEFAULT "small" }
PROPERTY "supporting information" { EDIT TEXT LENGTH 500 }
PROPERTY "Contains defs" { EDIT LISTOF "My Definition 1" INIT_FROM_REFERER {"size", "background info":"supporting information"} ASGRID }
PROPERTY "Can contain ABB" { EDIT LISTOF "My Definition 1"
}
See also
Keywords for USRPROPS