let's say type is of datasetcomplete, what is the attribute?
ondatasetcomplete