Thursday, March 25, 2010

Global::isType

The easiest way to determine if an EDT extends another EDT (not necessarily directly) is to use Global::isType() method.
For example:
isType(extendedtypenum(PurchUnit), extendedtypenum(UnitIDBase));
give true, since PurchUnit extends UnitID, which extends UnitIDBase.
isType(extendedtypenum(ABCModelType), extendedtypenum(NoYesId));
gives false, since ABCModelType and NoYesId are in different hierarchies.

7 comments: