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: Change Attribute Type
Topic Summary:
Created On: 10-Jun-2005 10:20
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.
 10-Jun-2005 10:20
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

Hello, now that i created my attributes in my current module. They all have the type "Integer" i tried to change it with the modify function, but I only got errors. So i tried to create them like this: AttrDef ad = create module type "Text" attribute "Name" then i get this error: -E- DXL: incorrectly concatenated tokens -E- DXL: incorrect arguments for function (create) -E- DXL: incorrectly concatenated tokens -I- DXL: all done with 3 errors and 0 warnings what did i do wrong?
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 12:07
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

I'm wary of modifying attribute types, I lost a lot of data that way once. However to create I use the following :- create object type "Boolean"//- history false//- changeBars false//- date false//- inherit false//- hidden false//- attribute "RSBool" Change RSBool for your attribute value, the //- allows continuation lines.
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 12:11
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

when I entered that there were newlines after the //- marks. I can't find the reply with code option at the moment.
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 12:15
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

ok i'll try that one, i can't loose data, because this script shall only be executed on freshly created and empty Modules thank you ___________(ENTER: why does this forum dont support ENTER?)_________________ i get this: ______________________ -E- DXL: incorrectly concatenated tokens -E- DXL: incorrect arguments for function (create) -I- DXL: all done with 2 errors and 0 warnings ______________________ when entering following code:

Edited: 10-Jun-2005 at 12:21 by Ben Herfurth
Report this to a Moderator Report this to a Moderator
 10-Jun-2005 17:47
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I don't think you can change the type of an attribute. If such an attribute has values and the values are compatible with the new type, you should [1] create a new attribute with the desired type. [2] copy the old values to the new [3] delete the old attribute [4] rename the new to old.

I would guess that your statement needs parenthesis.

Use the "Attach Code" button to add code. This box allows EOLs as pasted. The standard box (this one) uses standard HTML formatting, which only recognizies two EOLs in a row. Don't know why.

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


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

I wrote to the support, the nice man on the other end of the line, just gave me the same example, without parenthesis, and told me, that it's working fine on his machine ...

so now i am curious ... why doesn't it work here?

btw for making a newline you need to use the br-tag, but in the postbox following is written at the bottom:

HTML code is not permitted. Special symbols permit some HTML functionality.

But following the link you don't find the br-tag in the symbols list
O.o


Edited: 16-Jun-2005 at 07:40 by Ben Herfurth
Report this to a Moderator Report this to a Moderator
 22-Jun-2005 14:00
User is offline View Users Profile Print this message


Judith Underwood

Posts: 35
Joined: 25-Sep-2002

Do you by any chance have any of the keywords used in the DXL redefined as DXL variables?

For example, if you had
string attribute = "my string"
earlier on in your dxl, this would almost certainly break the create function.

-Judith
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.