开发者

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

开发者 https://www.devze.com 2023-02-06 12:19 出处:网络
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 valu

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

精彩评论

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