GetUsername
GetUsername

Reputation: 1067

BIRT - how to set dynamic "Display text" for report parameter?

How can I dynamically set "Display text" property of report parameter?

Upvotes: 2

Views: 4501

Answers (2)

Alan
Alan

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

Leikingo
Leikingo

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

Related Questions