Can "Tag" be used a parameter in BIRT report?
Can "TAGS" be used a parameter in BIRT report?
I have a report requirement that needs to use "TAGS" as a parameter for filtering reasons. So I add the "TAGS" as a parameter from the table LIVE_WORKITEM_CNT, it really exposes all the tags, but whenever I select some values from it, run the report and no results returned by the report (it should return results as expected)
Anyone used "TAGS" as a parameter before and encounter a similar problem?
My notice is that some work items might be labeled more than one tags, and these tags are exposed as "|Tag1|Tag2", is it causing the problem?
Thanks in advance!
Qi Li
2 answers
Hello,
As you noticed when fetching from data set, tags are stored as one string with "|" delimiters for every work item. So you have to do some javascript parsing\additional handling to filter data by tag.
You can either change parameter value at time of generating report to match it with "|tag1|tag2|tag3|"-like string or use data set filtering with built-in expression instead of data set parameter.
Comments
Qi Li
JAZZ DEVELOPER Jul 23 '12, 2:57 p.m.To be more specific, some representative tags exposed in the drop-down list is that:
|Tag1|
|Tag1|Tag2|
|Tag1|Tag2|Tag3|
etc...