JAVA API get view array with header???
Posted: Mon Jul 10, 2017 3:53 pm
Hi guy's tell me how to build a view with setSuppressZeroes(true) and get coordinates of the cell?
Or the resultant arrays along the coordinate axes?
Example:
how i can get coordinats of this cell???
Or the resultant arrays along the coordinate axes?
Example:
Code: Select all
//Create connection
...
//get cube
TM1Cube Cube =ts.getCube("CUBENAME");
...
//loop dims, create N elements subset
...
//create view
TM1View View=Cube.createView(titleSubsetArr, columnSubsetArr, rowSubsetArr);
...
View.setSuppressZeroes(true);
View.constructArray();
TM1Val Contents = View.getViewArrayValueByRange(1, 1, View.getNumberOfArrayRows(), View.getNumberOfArrayColumns());
//get value from Suppress Zeroes array
TM1Val CELL= Contents.getArrayVal(0).getArrayVal(1) ;