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

(DOORS 9.7) Can you use oleInsert to embed multiple files into the same object?

Hi,


I am currently trying to use DXL to embed all files in a specified directory into the object text attribute of one object. It looks like when I iterate over the files in a directory, the object text gets overwritten each time so only the last file will be embedded in the selected object by the end:

Object o = current
string dir = "C:\Users\TextFiles"
string doc, fileName
bool success

for fileName in directory dir do {
    doc = dir + "\" + fileName
    success = oleInsert(o, doc)
    if(success) {
        print "Inserting "doc" into object\n"
    }
    else {
        print "Could not insert "doc" into object\n"
    }
}

Is there a way to insert the object after what is already existing in the object text each time? I am using DOORS 9.7

0 votes


Be the first one to answer this question!

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
× 36
× 5

Question asked: Apr 07, 9:09 a.m.

Question was seen: 90 times

Last updated: Apr 07, 9:13 a.m.

Confirmation Cancel Confirm