Reputation: 1067
How can I dynamically set "Display text" property of report parameter?
Upvotes: 2
Views: 4501
Reputation: 1549
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 ");
Upvotes: 1
Reputation: 940
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.
Upvotes: 2