开发者

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

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 ");

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜