![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: InLink Count Problem Topic Summary: Created On: 1-May-2008 21:40 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: [1] Your 'exists attribute' lines presume the current module. That may change as you open other modules; IIRC the 'current' module changes when a module is actually opened but doesn't change the 2nd time you open it (since its already open). I'd put "current = m" before these commands. [1a] In fact, if the current module lacks both attributes 'Relevance' and 'Approved', it looks like you don't want to do anything. If so, move those checks before the main object look and if it fails end gracefully. [2] If running from an open module, which you are, you don't need the original { and final } braces. I've NEVER ever done that and never had a problem; and I cannot help but suspect it could cause a problem. Don't see anything else. Must be #1 - Louie | |
![]() |
|
Hi there experts
I wonder if someone could help me please. I attach the problem code. I am counting inlinks from certain Modules based on source identifier. To do this I need to open the source module first, which I belive I am doing in the first loop which uses the LinkRef to open the sourcemodule, add to a skiplist (to close at the end). Unfortunately, the script does not produce correct results the first run through, if you run it twice then it will. This is really annoying me. Any help would be much appreciated. Thank you. |
|
![]() |
|
![]() |
|
[1] Your 'exists attribute' lines presume the current module. That may change as you open other modules; IIRC the 'current' module changes when a module is actually opened but doesn't change the 2nd time you open it (since its already open). I'd put "current = m" before these commands.
[1a] In fact, if the current module lacks both attributes 'Relevance' and 'Approved', it looks like you don't want to do anything. If so, move those checks before the main object look and if it fails end gracefully. [2] If running from an open module, which you are, you don't need the original { and final } braces. I've NEVER ever done that and never had a problem; and I cannot help but suspect it could cause a problem. Don't see anything else. Must be #1 - Louie |
|
![]() |
|
![]() |
|
Hi Louie
You got it !!! Thanks so much. It was indeed the 'current = m' - or rather lack of it!!! Thanks so much. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
InLink Count Problem
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.