![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Deleting Objects with Links Topic Summary: Created On: 14-Sep-2004 15:09 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You could try using the function flushDeletions, though I'm not sure whether it applies to link deletions. This function commits any deletions performed by the DXL script...usually this is done at the end of the DXL script, which may be the reason why you can delete the object manually at that point. Antonio. | |
![]() |
|
We are trying to delete an object with links.
Here is the code. Link lnk string strSourceModName Module srcMod for lnk in obj -> "*" do { delete lnk } for lnk in obj <- "*" do { Object src = source (lnk) strSourceModName = fullName source (lnk) if (!open module strSourceModName) { srcMod = edit(strSourceModName, false) if (!null srcMod) delete lnk else ack "Could not delete in-links! Test Module is open exclusive." } else { delete lnk lnk = null } } for lnk in obj <- "*" do { Object o = source (lnk) //print "Found an inlink!" number(o) "\n" delete lnk lnk = null } save(current Module) delete obj Here is the error we are getting. Found an inlink!2.1.2.9.0-1 -R-E- DXL: <Line:338> cannot delete Object: object has incoming links When in the module, the object shows no links! We can also manually delete the object at this point. We also tried deleting from the source first and this did not help. Anyone got any ideas? Thanks! ------------------------- Hello |
|
![]() |
|
![]() |
|
You could try using the function flushDeletions, though I'm not sure whether it applies to link deletions.
This function commits any deletions performed by the DXL script...usually this is done at the end of the DXL script, which may be the reason why you can delete the object manually at that point. Antonio. |
|
![]() |
|
![]() |
|
That solved the problem we were having! Thanks for your help!
------------------------- Hello |
|
![]() |
|
![]() |
|
Besides flush deletions you also have the problem that your source modules may NOT get loaded. You need a "for linkRef in obj<"*" loop to find the names, and open the other module that way. That's standard when dealing with incoming links.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Deleting Objects with Links
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.