![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: set Attrubte Access to inhertied Topic Summary: Created On: 15-Nov-2007 12:38 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I would like to set the access for every attribute (definition and value) in module to inhertied. I wrote something. But it tells me "incorrect arguments for function (inheritedDef)". Can anybody please help? This is my code: |
|
![]() |
|
![]() |
|
Try changing one line as follows:
err = inheritedDef(m,ad) |
|
![]() |
|
![]() |
|
You also need inheritedVal(m, ad). inheritedDef(m, ad) does the access rights for the definition. inheritedVal(m, ad) does the access rights for the value.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Works perfect. Thank you very much guys!
For everybody who's interested, here is the complete script: Edited: 15-Nov-2007 at 14:28 by Peter Schäfer |
|
![]() |
|
![]() |
|
You need to check for non-null errors while inside the attribute loop. As it is now, you only check for errors on the last attribute. Perhaps:
if (!null errAttrDef) bufErrors += name(ad) "\tDefSet Error: " errAttrDef "\n" if (!null errAttrVal) bufErrors += name(ad) "\tValSet Error: " errAttrVal "\n" You perhaps also want tell the user all the errors, and also tell her when there were no errors. And since I like bells and whistles, I'd be tempted to offer to save the module when there were no errors: if (length(bufErrors) == 0 and confirm("No Errors; save module?")) save(current Module) - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
set Attrubte Access to inhertied
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.