Add events for creating the data definition and populating an attribute.