Hello,
I tried to execute code from the Implementing the Account and Financial Dimensions Framework (White paper), page 34. But for some mysterious reason it's not working.
DimensionValueService service = new DimensionValueService();
DimensionContract dimensionContract = new DimensionContract();
DimensionValueContract dimensionValueContract;
DimensionValue dimensionValue;
List dimensionValueContractList;
ListIterator contractorIterator;
;
dimensionContract.parmDimensionName(#DimName);
dimensionValueContractList = service.getDimensionValues(dimensionContract);
contractorIterator = new ListIterator(dimensionValueContractList);
while(contractorIterator.more())
{
dimensionValueContract = contractorIterator.value();
dimensionValue = dimensionValueContract.parmValue();
contractorIterator.next();
{info(strFmt("%1", dimensionValue));}
}
contractorIterator is always null! And the dimensionValueContractList is initialized and has values in it.
I tried to create simple list and iterator in the same way to test it and eveything works fine.
I'm really confused, I'm missing somehting very simple.
Please help,
Thanks in advance.
*This post is locked for comments
I have the same question (0)