![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: Wrong type on Objects Topic Summary: I need to change the type on some objects that area checked in Created On: 3-Feb-2005 18:50 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
For some reason when migrating or reconciling in certain objects they are not picking up the correct type.
BEcause of this they objects are not displaying the correct behaviour when being opened and the correct attributes for these objects are not showing up. I was wondering if anyone has a script or knows how to change the type of an object that is static and has a particular extension. For instance .doc or .xls. I have a script that moves objects from one type to another but I don't want every object moved just some. Thanks; -Jane |
|
![]() |
|
![]() |
|
Hi Jane,
do you have a problem changing the cvtype or selecting a set of specific objects? For the last you can use a query, or better address the responsible attributes directly to fetch the objects. ciao, Lutz |
|
![]() |
|
![]() |
|
Well I have a problem changing the cvtype, I can generate the query just fine but I cannot modify a static object. I have tried and I can't.
Even as ccm_root with ccm_admin. |
|
![]() |
|
![]() |
|
Hallo Jane, i suppose changing type of an static object is not possible. Please try the ccm change_type - command:
Synopsis ccm change_type file_spec /t|/type new_type /task task_number Description and Uses Changes the type of a specific object. A new version of the object that has the specified type is created. If the specified object is in the working state, it is replaced with the new object, and the specified object is deleted from the database. If the object is a member of a project and the change_type command is executed within the project, the old object is replaced by the new object in the project. If the parent directory is not modifiable, it is automatically checked out for you. The project must be writable by you. If the object is a member of more than one project, or if the command is not executed within the project where the object is a member, the command fails. Any user can perform this operation. Regards Hans-Peter Kempen |
|
![]() |
|
![]() |
|
Hi Jane,
you are right. Even as ccm_root/ccm_admin you can not do what you want. Big brother is watching you. For example: Modify attribute : at element 'testfile~1:c++:1' with name 'status' set value to 'working' Command: ccm attr -m status -v "working" testfile~1:c++:1 Attribute operation permitted. Warning: Invalid state transition: 'integrate' -> 'working'. Attribute 'status' could not be modified on object 'testfile~1:c++:1' Command executed with RC(1). *** COMMAND FAILED ! *** But I remember that in 2001 we had have a problem and modified the cvtype as we need it. For doing this we used a file. Maybe something like dumping the attributes and rewrite them. I do not know anymore. I will look up for this and come back to you if I have found it. ciao, Lutz |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
Wrong type on Objects
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.