JmgConsistencyCheck_job.treeParentClassId Method [AX 2012]
Returns the class ID of the parent class in the consistency check hierarchy, which is JmgConsistencyCheck.
Syntax
public ClassId treeParentClassId()
Run On
Called
Return Value
Type: ClassId Extended Data Type
The class ID of the parent class in the consistency check hierarchy.
Examples
The following example demonstrates the use of this method.
boolean hasCorrectParent(Object childClass, classId childClassId)
{
Object object;
classId treeParent;
DictClass curClass;
;
if (this.baseClassId() == topClassId)
return true;
if (childClassId == topClassId)
return true;
treeParent = childClass.treeParentClassId();
if (treeParent == this.baseClassId())
return false;
curClass = new DictClass(treeParent);
object = curClass.makeObject();
return this.hasCorrectParent(object, treeParent);
}