I just started working with DOORS a month ago, went through the
training session and am now embarking on real work. And here is my
first real-world problem:
I have two formal modules containing links, and I would like to display
the appropriate Object Text of the linked objects in the target module
in a column of the source module. No problem, with the help of the
wizard this column is just few clicks away.
However, here is the problem: if out-links are placed in tables,
nothing is shown in the Out-links column.
I tried to tackle it with some self-written DXL code, but it seems as
if the
"for l in obj -> lnkModName do"
loop does not catch the tables.
So, probably tables aren't objects?
Well, I guess somewhere out there someone already had placed links in
tables, so I would greatly appreciate any help.
Best regards,
Peter
Its been awhile since I have looked into this, so I can't say that this
is still true for the latest version of DOORS, but
the problem you are indicating I believe is a known limitation for
doors. Each cell of a doors table is actually its own object. (there
are some other objects also for header and rows (these can't be seen))
The problem with the column dxl, is that is is run on each object.
Because the table has multiple objects per row, there was not a good
way to display its data in a column. So DOORS will not print anything
for those items. In other words, column dxl's do not work for objects
that are in tables.
Here are some ideas that you could try that might give you what you
want. (I haven't tried them, but they could work) In your code, check
whether the object is a table header object. If it is, traverse the
table and gather the data you want, then display all the collected data
(formatted to your liking) in the column next to the header. Note this
will only work if you turn off displaying the table cells (so that only
the header is displayed). Its alot of work, but I believe it should
give you what you want.
(try it on a small scale (though) first to make sure heading coluns
actually will display column dxl outputs. It should but again, I've
never tried itl.)
We do place links in tables, but don't generally try to show them via a
column dxl.
Hope that helps.
Doug
thanks a lot for the response, I see the point. I'll try your
suggestions.
Best regards,
Peter