Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: set Attrubte Access to inhertied
Topic Summary:
Created On: 15-Nov-2007 12:38
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-Nov-2007 12:38
User is offline View Users Profile Print this message


Peter Schäfer

Posts: 5
Joined: 30-Aug-2007

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:
Report this to a Moderator Report this to a Moderator
 15-Nov-2007 13:04
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Try changing one line as follows:

err = inheritedDef(m,ad)
Report this to a Moderator Report this to a Moderator
 15-Nov-2007 13:36
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 15-Nov-2007 14:27
User is offline View Users Profile Print this message


Peter Schäfer

Posts: 5
Joined: 30-Aug-2007

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
Report this to a Moderator Report this to a Moderator
 15-Nov-2007 15:59
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.