Groovy: Identifying Dimension Members in the POV — Cloud Customer Connect
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

Groovy: Identifying Dimension Members in the POV

edited Jul 16, 2020 7:22PM in Planning 8 comments

Content

Hi All,

I'm just dipping my toes into groovy, and using online sources and tutorials to help me out (thanks Kyle your blog is great!). But am hitting some walls.

I currently have the below code.

 

//Store all POV membes in variable "povmbrs"
List<String> povmbrs = operation.grid.pov*.essbaseMbrName
println(povmbrs)


//Pull each Dimension Name into their own variable after referencing the povMbrs variable set above
String yearVar = povmbrs.find {it.dimName =='Years'}.essbaseMbrName
String scenarioVar = povmbrs.find {it.dimName =='Scenario'}.essbaseMbrName
String versionVar = povmbrs.find {it.dimName =='Version'}.essbaseMbrName
String currencyVar = povmbrs.find {it.dimName =='Currency'}.essbaseMbrName

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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