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: add/create attributes in module
Topic Summary:
Created On: 9-Jun-2005 14:48
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.
Answer This question was answered by Ben Herfurth, on Friday, June 10, 2005 9:30 AM

Answer:
arf i think i got the error .... i opened the module with "read()" ... stupid me. thanks for your answer
 9-Jun-2005 14:48
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Hello, i am trying to create some attributes in my current module via my DXL script. i tried "create attribute "XYZ"" but i get the message:
quote:

-R-E- DXL: no access to create attribute 'XYZ' Backtrace:
and the program exits is there a possibility to add attributes to the current module? Thanks in advance P.S.: I have the proper right to create attributes, as I can create them by hand.

Edited: 9-Jun-2005 at 14:48 by Ben Herfurth
Report this to a Moderator Report this to a Moderator
 9-Jun-2005 17:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You'll need to trap the DXL errors as follows:
noError()
AttrDef ad = create(....)
string ErrMess = lastError()
if (null ad or !null ErrMess)
{ print NameAttr "\t" ErrMess)
do something on error
}

As for this error, I'd suppose its because you don't have the module open Exclusive. Shared isn't good enough to muck around with Module things such as Attributes and Module attr values.

- Louie
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 07:57
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

hmm thanks for your reply, but the code of yours is only for error message handling right? i had the module open exclusive, as it was only a test module which i created before. but i will try your code
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 08:06
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Answer Answer
arf i think i got the error .... i opened the module with "read()" ... stupid me. thanks for your answer
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 08:35
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

edit: got it

Edited: 10-Jun-2005 at 09:29 by Ben Herfurth
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.