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

DXL script to find object ID in any given folder in Rational Doors

 I'm new to the DXL scripting and was trying to write a script to find object id in the given folder path. That means, user will provide the object id which he/she wants to find in Doors. I tried to use built in option in Doors (Tools -> Find) in order to find any object id in the given folder path but it didn't work. Please help me if you need more about this option or provide me the DXL script sample.


Thanks!

0 votes



One answer

Permanent link

 


Folder f = current //Run the script in folder where you want find object ID
Item itm
Object ob
string Object_ID = "323" //Give object ID here which you want to find
Module m
string FullModName
for itm in f do
{
if(type(itm)=="Formal")
{
//FullModName = fullName itm
m = read(fullName(itm), false)

for ob in m do
{
if(ob."Absolute Number""" == Object_ID)
{
print "Object ID "  ob."Absolute Number" " found in module: ", print fullName(m)"\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
× 198
× 26

Question asked: Jul 14 '20, 9:26 a.m.

Question was seen: 5,380 times

Last updated: Oct 01 '20, 8:17 a.m.

Confirmation Cancel Confirm