![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Change Attribute Type Topic Summary: Created On: 10-Jun-2005 10:20 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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:
|
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
when I entered that there were newlines after the //- marks. I can't find the reply with code option at the moment.
|
|
![]() |
|
![]() |
|
ok i'll try that one, i can't loose data, because this script shall only be executed on freshly created and empty Modules
![]() Edited: 10-Jun-2005 at 12:21 by Ben Herfurth |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Change Attribute Type
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.