How can I dynamically set "Display text" property of report param开发者_StackOverfloweter?
What do you exactly mean by "display text" of a parameter. Are you refering to the "Selected display value" from a combobox or a listbox parameter? If so, you can use a scripted DS and generate the display values in the fetch method.
He's talking about the parameter displayText, I think he meant either this:
params["name"].displayText
aka:
reportContext.getParameterDisplayText("name")
You could try something similar to this:
var javaString = (new Packages.java.lang.String(param["name"].displayText));
javaString.replace("old_value", "new_value ");
精彩评论