![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: User managed to create the default link module themselves Topic Summary: and I can't work out why Created On: 9-Jul-2008 09:17 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Using DOORS v71167
I having a bit of brain fade. We have a user who has managed to create links between modules which have defaulted to the "DOORS Links" link module. When they tried to create a link they had the message "A linkset does not exist for this operation. Do you want to create one?", and said "Yes". In other modules, when trying to create a link for which the pairing had not been set up we get a message to the effect "A linkset pairing restriction prevents teh creation of links from x to y. No link will be created." Yet I can't see any difference in the source moduloe for this attempt to create a link and the one above. I appreciate that via the DOORS Explorer menu you can use Tools|Options and the Settings Tab to see the "Default Link Module", but this is the first time I've ever seen it used. What should I be looking for that permitted them to set up the default link module themselves? |
|
![]() |
|
![]() |
|
Okay, I've worked out the answer myself, as the "Only allow outgoing links as specified in the above list" checkbox was unset in the Module Properties.
However, I have another related question.... is there a module-level attribute that can be searched via a script to ensure this checkbox is checked? |
|
![]() |
|
![]() |
|
For some reason this is undocumented.
bool getLinkModuleDescriptorsExclusive(Folder, ModName_) The associated perm to set is documented: void setLinkModuleDescriptorsExclusive(Folder, ModName_, bool) ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
You could also create the default DOORS link module and do a soft delete of it. This would prevent the default module from being used. I have found this useful since some users create new modules and even before I get a chance to ensure that the 'only outgoing links...' option is enabled, they would try linking.
|
|
![]() |
|
![]() |
|
Yep, im in the habit of creating the DOORS links mod in every folder and soft deleting it, a bit of extra work, but has saved me lots of tiresome link redirections over the years.
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
I tried using getLinkModuleDescriptorsExclusive, but everything returns false, even though I know the "Only allow outgoing links as specified in the above list" checkbox is set for most module.
|
|
![]() |
|
![]() |
|
Alan,
The current folder is not set when you loop through items! change your function call to this: if (getLinkModuleDescriptorsExclusive(getParentFolder(it), module(mn)) ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony, works a treat now.
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.