You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Using for loops in Data definition builder

Hello,

Using Data definition builder I'm trying to Display the dates in a certain combination and it's working when i tried using for loop it is throwing an error.

This is my input form. For each services i'm entering Data range and venue and trying displaying it.

This is my code:

def cube3=operation.application.getCube("OEP_FS");Dimension periodDim1=operation.application.getDimension("Services",cube3);def test1=periodDim1.getEvaluatedMembers("ILvl0Descendants(All Services)",cube3);
println(test1.toString());

def startdate
def enddate
Cube cube = operation.application.getCube("OEP_FS")
for(int i = 0;i<test1.size();i++){
DataGridDefinitionBuilder builder1 = cube.dataGridDefinitionBuilder()
builder1.addPov(['Entity', 'Years', 'Scenario', 'Version', 'Currency', 'Product','Plan Element','Custom 1','Period'],

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!