Share via


ProjPosting::getLedgerDimension Method

Retrieves a ledger dimension number based on the specified project, category, and account type.

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 LedgerDimensionDefaultAccount getLedgerDimension(
            ProjAccountType _projAccountType, 
            ProjId _projId, 
            ProjCategoryId _projCategoryId, 
            ProjFundingSourceRefId _projFundingSourceId, 
           [boolean _mustBeGroup, 
            boolean _throw, 
            TaxGroup _taxGroupId])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static LedgerDimensionDefaultAccount getLedgerDimension(
            ProjAccountType _projAccountType, 
            ProjId _projId, 
            ProjCategoryId _projCategoryId, 
            ProjFundingSourceRefId _projFundingSourceId, 
           [boolean _mustBeGroup, 
            boolean _throw])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static LedgerDimensionDefaultAccount getLedgerDimension(
            ProjAccountType _projAccountType, 
            ProjId _projId, 
            ProjCategoryId _projCategoryId, 
            ProjFundingSourceRefId _projFundingSourceId, 
           [boolean _mustBeGroup, 
            boolean _throw])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static LedgerDimensionDefaultAccount getLedgerDimension(
            ProjAccountType _projAccountType, 
            ProjId _projId, 
            ProjCategoryId _projCategoryId, 
            ProjFundingSourceRefId _projFundingSourceId, 
           [boolean _mustBeGroup, 
            boolean _throw])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static LedgerDimensionDefaultAccount getLedgerDimension(
            ProjAccountType _projAccountType, 
            ProjId _projId, 
            ProjCategoryId _projCategoryId, 
            ProjFundingSourceRefId _projFundingSourceId, 
           [boolean _mustBeGroup, 
            boolean _throw])

Run On

Called

Parameters

  • _mustBeGroup
    Type: boolean
    A Boolean value that indicates whether the value in the ProjLedgerPosting field must have the ProjLedgerPosting::GroupId enumeration value; optional.
  • _throw
    Type: boolean
    A Boolean value that determines whether an exception will be thrown if the record is not in the ProjPosting table; optional.

Return Value

Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger dimension that is used by the transaction, based on the parameters for posting.

See Also

Reference

ProjPosting Table