ProjTable::getRootProjId Method
Find the top most root for a given project id.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static ProjId getRootProjId(ProjId _projId, [SelectableDataArea _dataArea])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static ProjId getRootProjId(ProjId _projId, [SelectableDataArea _dataArea])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static ProjId getRootProjId(ProjId _projId)
Microsoft Dynamics AX 2012 (FPK)
client server public static ProjId getRootProjId(ProjId _projId)
Microsoft Dynamics AX 2012 (SYS)
client server public static ProjId getRootProjId(ProjId _projId)
Run On
Called
Parameters
- _projId
Type: ProjId Extended Data Type
The project id for which an ancestor needs to be found.
- _dataArea
Type: SelectableDataArea Extended Data Type
The data area of the project
Return Value
Type: ProjId Extended Data Type
Returns the top most root of the given project id.
Remarks
Breaks out after depth of 64 to prevent infinite loop.