Share via


LedgerDimensionController::restrictQueryToTreeValuesForHierarchy Method [AX 2012]

Restricts the query to dimension attribute values by using the constraint trees for the specfied hierarchy.

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 void restrictQueryToTreeValuesForHierarchy(
            QueryBuildDataSource _queryBuildDataSource, 
            RecId _dimensionAttributeId, 
            DimensionStorage _dimensionStorage, 
            int _hierarchyIndex, 
            int _hierarchyStart, 
            int _segmentNumber, 
           [boolean _ignoreSegmentsAfterIndex, 
            container _segmentedEntryControlDimAttributes, 
            boolean _applyRestrictionBasedOnTranslations])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static void restrictQueryToTreeValuesForHierarchy(
            QueryBuildDataSource _queryBuildDataSource, 
            RecId _dimensionAttributeId, 
            DimensionStorage _dimensionStorage, 
            int _hierarchyIndex, 
            int _hierarchyStart, 
            int _segmentNumber)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static void restrictQueryToTreeValuesForHierarchy(
            QueryBuildDataSource _queryBuildDataSource, 
            RecId _dimensionAttributeId, 
            DimensionStorage _dimensionStorage, 
            int _hierarchyIndex, 
            int _hierarchyStart, 
            int _segmentNumber)

  Microsoft Dynamics AX 2012 (FPK)
          client server public static void restrictQueryToTreeValuesForHierarchy(
            QueryBuildDataSource _queryBuildDataSource, 
            RecId _dimensionAttributeId, 
            DimensionStorage _dimensionStorage, 
            int _hierarchyIndex, 
            int _hierarchyStart, 
            int _segmentNumber)

  Microsoft Dynamics AX 2012 (SYS)
          client server public static void restrictQueryToTreeValuesForHierarchy(
            QueryBuildDataSource _queryBuildDataSource, 
            RecId _dimensionAttributeId, 
            DimensionStorage _dimensionStorage, 
            int _hierarchyIndex, 
            int _hierarchyStart, 
            int _segmentNumber)

Run On

Called

Parameters

  • _dimensionAttributeId
    Type: RecId Extended Data Type
    The record ID of the dimension attribute for the segment for which to add restrictions.
  • _dimensionStorage
    Type: DimensionStorage Class
    The DimensionStorage object from which to retrieve known values.
  • _hierarchyIndex
    Type: int
    The index of the hierarchy in the specified DimensionStorage object.
  • _hierarchyStart
    Type: int
    The segment index the hierarchy starts at in the specified DimensionStorage object.
  • _segmentNumber
    Type: int
    The segment index of the segment to restrict in the specified DimensionStorage object.
  • _ignoreSegmentsAfterIndex
    Type: boolean
  • _segmentedEntryControlDimAttributes
    Type: container
  • _applyRestrictionBasedOnTranslations
    Type: boolean

See Also

Reference

LedgerDimensionController Class