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 doesnt recognise StringasNumber RTP

Accepted answer


Hi There,

I am trying to convert a script into Groovy, which returns an audit stamp for the time, date and the user when the rule was ran.

While everything is working fine, for some reason it is not recognising the RTP which I have set up for User Name, which is in StringAsNumber format.

The RTP which I set up:

Groovy Script:

/*RTPS: {Tar_Ver} {Tar_Sce} {UName}*/

Cube cube = operation.application.getCube("OPS_WS")

Dimension targetVersion = operation.application.getDimension("Version", cube)

Dimension targetScenario = operation.application.getDimension("Scenario", cube)

String Version = rtps.Tar_Ver.getEnteredValue()

String Scenario = rtps.Tar_Sce.getEnteredValue()

Howdy, Stranger!

Log In

To view full details, sign in.


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