Issue displaying Strings in a Report Result

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

In a Report Result, when I output a String, how would I be able to remove the brackets?
I have tried removing the first and last characters of the string, but despite removing the brackets it also removed the first and last characters, as one would expect.

Hi @joaovrodrigues,
Could you kindly clarify your question by providing an example of an issue you’re encountering while manipulating the string.

1 Like

The issue I’m having is that the output of the report comes with brackets, such as in the image’s case.
image

Can you please share your report definition xml here.

1 Like

I’m very sorry, but I am not allowed to share that information.
Have you ever seen similar behaviour in any report output? When are brackets used in a report output?

Hi,

try this:

String charToRemove1 = '[';
String charToRemove2 = ']';
String modifiedString1 = strngvar.replace(String.valueOf(charToRemove1), "");
String modifiedString = modifiedString1.replace(String.valueOf(charToRemove2), "");

replace {strngvar} with the string you giving in output
and return modifiedString as your final string output

please let me know if it works

Thanks for the help, I managed to solve the issue.
I solved it by creating a new variable, in the case of the return string type with issues. And in the case of the return date types, I used a similar method from the one you mentioned.