Posts

Showing posts from May, 2022

Create default dimension

The default dimension hierarchy has it's threshold to understand and work with. Under are two methods I use often and are quite useful in their simplicity. In advance, sorry for the horrible formatting and indentation of the code. /// <summary> /// Creates default dimension for a set of dimension names and values /// </summary> /// <param name = "_dimensionNames">Container of dimension names</param> /// <param name = "_dimensionValues">Container of dimension values</param> /// <returns>LedgerDefaultDimensionValueSet</returns> public static LedgerDefaultDimensionValueSet getDefaultDimension(           container _dimensionNames, container _dimensionValues) {      DimensionNameValueListContract      dimensionNameValueListContract = new                                             DimensionNameValueListContract();      DimensionStorageResult dimensionStorageResult;             List dimensionValueList = new List(Types::C