Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to display immediate heading name of a target or linked object with dxl

This question is regarding DOORS 9.6.1. I have one module and the objects are in which have been linked to many other objects in many modules. now I want to display:

1. Link full path

2. Immediate heading name of target object or linked object

3. Target object text

I am able to get link full path and object text with the below code but not able to display immediate heading of linked object:

Link lnk
for lnk in obj -> "*" do
{
string tmn = fullName target(lnk)
if(!open module tmn)
{
read(tmn, false)
}
Object trg = target lnk
string stext = trg."Object Text"
displayRich "\\b" tmn "\n"
display stext"\n" "\n"
}

Please help me in displaying immediate object heading of linked object.

Regards,

Naidu.

0 votes



2 answers

Permanent link
Module m = current
Link lnk
Object obj

for obj in m do
{

for lnk in obj -> "*" do
{
string tmn = fullName target(lnk)
if(!open module tmn)
{
read(tmn, false)
}
Object trg = target lnk
string stext = trg."Object Text"
displayRich "\\b" tmn "\n"
display stext"\n" "\n"

while(trg."Object Heading"""==null)
{
trg = parent(trg)
}
print trg."Object Heading""""\n"
}
}

0 votes


Permanent link

 //Layout Dxl:


Link lnk



for lnk in obj -> "*" do
{
string tmn = fullName target(lnk)
if(!open module tmn)
{
read(tmn, false)
}
Object trg = target lnk
string stext = trg."Object Text"
displayRich "\b" tmn "\n"
display stext"\n" "\n"

while(trg."Object Heading"""==null)
{
trg = parent(trg)
}
display trg."Object Heading""""\n"
}




0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Apr 10 '17, 7:42 a.m.

Question was seen: 4,170 times

Last updated: Oct 05 '20, 7:06 a.m.

Confirmation Cancel Confirm