如何使所有要求从IBM Rational Doors中的要求ID开始(在括号内)?

发布于 2025-02-05 22:32:03 字数 547 浏览 0 评论 0原文

我有3个属性:

  1. ID
  2. 文本
  3. 是需要的吗?

以下是我想要的示例:

之前:

ID      Text                              Is Requirement?
AB45    3.1.2 Apples                      FALSE
AB46    All apples shall be red.          TRUE

之后:

ID      Text                              Is Requirement?
AB45    3.1.2 Apples                      FALSE
AB46    [AB46] All apples shall be red.   TRUE

是否有一种程序化方法可以将ID添加到“文本”的正面,仅在“是要求”的情况下?是真的吗?如果是这样,代码到底在哪里,您将如何执行?它会是附加的DXL属性吗?

I have 3 attributes:

  1. ID
  2. Text
  3. Is Requirement?

Here's an example of what I want:

Before:

ID      Text                              Is Requirement?
AB45    3.1.2 Apples                      FALSE
AB46    All apples shall be red.          TRUE

After:

ID      Text                              Is Requirement?
AB45    3.1.2 Apples                      FALSE
AB46    [AB46] All apples shall be red.   TRUE

Is there a programmatic way to add ID's to the front of the "Text", only if "Is Requirement?" is TRUE? If so, where exactly would the code go and how would you execute it? Would it be an additional DXL attribute?

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

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

发布评论

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

评论(1

家住魔仙堡 2025-02-12 22:32:10

不是直接。可以计算或手动填充属性,而不是同时进行。也许您可能希望有两个视图,一个“编辑视图”,一个“显示需求视图”。在后者中,您不会显示主列(主列显示“对象标题”和“对象文本”),但是您将拥有带有类似代码的DXL布局列:

bool objIsReq = obj."Is Requirement?"
if (objIsReq) {
  display "[" identifier(obj) "] " obj."Object Text" ""
} else {
  if (!null obj."Object Heading""") then display number (obj) " - " obj."Object Heading"""
  if (!null obj."Object Text""") then display obj."Object Text"""
}

Not directly. An attribute can either be calculated or manually filled, not both at the same time. Perhaps you might want to have two views, one "Edit view", one "Show Requirements View". In the latter, you will not show the main column (main column shows "Object Heading" and "Object Text"), but you will have a DXL Layout column with a code like this:

bool objIsReq = obj."Is Requirement?"
if (objIsReq) {
  display "[" identifier(obj) "] " obj."Object Text" ""
} else {
  if (!null obj."Object Heading""") then display number (obj) " - " obj."Object Heading"""
  if (!null obj."Object Text""") then display obj."Object Text"""
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文