如何在 BIRT 报告中获取完全限定的对象名称?

发布于 2024-08-03 10:45:57 字数 134 浏览 7 评论 0原文

我在 Rational Software Architect 中有一个 BIRT 报告,它在一列中输出元素的名称。当我在整个项目上运行报告时,我得到很多重复的列,因为我在不同的包中具有相同(不合格)名称的元素。如何编辑 BIRT 报告以使用完全限定名称?

I have a BIRT report in Rational Software Architect that outputs an element's name in one column. When I run the report on my whole project, I get lots of duplicate columns because I have elements with the same (unqualified) name in different packages. How can I edit the BIRT report to use the fully-qualified name?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骑趴 2024-08-10 10:45:57

标准 UML 数据集没有此元素值,我们必须将其从建模数据源添加到您想要的数据集中。

在您正在为报告表读取的数据集中,右键单击
“数据集”->编辑。从弹出的“编辑数据集”窗口的列表中选择“列映射”。在浏览分组中选择模型下拉按钮并选择相关的 uml 元元素。展开树,直到看到属性/属性列表并选择qualifiedName,单击>按钮添加属性,它将添加带有查询 @qualifiedName 的列。完成并享受。

注意:某些 UML 元元素类型没有此属性,如果您无法将数据集细化为我看到此黑客的数据集...添加一个名为 path 的列,其中包含 ../@qualifiedName 查询,得到路径或父 QualifiedName,因为它很可能有一个(组件、包等)。它适用于 Element 类型。

The standard UML data sets do not have this element value we must add it from the modeling data source to the data sets you want.

In the data sets which you are reading for you report table, right click
the "data set"->edit. Select Column Mapping from the list in the Edit Data Set window that popped up. In the Browse grouping select the model dropdown button and select the uml meta-element in question. Expand the tree until you get to a list of properties/attributes and select the qualifiedName, click the > button to add the attribute it will add a column with the query @qualifiedName. Finish and enjoy.

NOTE: Some UML meta-element types do not have this attribute, if you can't refine your data set to one that does I saw this hack... adding a column called path with a query of ../@qualifiedName which got the path or parent qualifiedName as it will more than likely have one (Component, Package, etc). It worked for the Element type.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文