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