Skip to Content
0
Aug 07, 2019 at 10:16 AM

Lumira Designer - Prompt Value with brackets

367 Views

Hey guys,

i have a little Problem here and cant imagine, that there is no solution for it. But unfortunately i couldn't find one.

So basically i want to set a Prompt-Value with a Script in Lumira Designer. The Prompt is created in the Universe. I need to work with a Value with brackets and just because of these brackets the Code doesn't work. If I delete the brackets the Script is working, but I need the Brackets to Filter the Data in the Universe.

So my Script is similar to this one:

DS_1.setVariableValueExt("pmPrompt", "test()"); <== Not Working

DS_1.setVariableValueExt("pmPrompt", "test"); <== Working

I found this post:

https://answers.sap.com/questions/11489505/multiple-entry-to-bex-variable.html

But I don't understand it fully. I can't put a "\" in a String like this:

test= Convert.replaceAll(test, '('; '\(');

Because then I get an Error-Message, saying

"Invalid escape sequence (valid ones are \b \t \n \f \r
\" \' \\ )"

I just don't get a Solution for it. Please help me!