Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
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.
 3-Feb-2005 18:50
User is offline View Users Profile Print this message


Jane Steeves

Posts: 4
Joined: 29-May-2003

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
Report this to a Moderator Report this to a Moderator
 8-Feb-2005 07:51
User is offline View Users Profile Print this message


Lutz Zollikofer

Posts: 44
Joined: 31-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 8-Feb-2005 21:06
User is offline View Users Profile Print this message


Jane Steeves

Posts: 4
Joined: 29-May-2003

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.
Report this to a Moderator Report this to a Moderator
 9-Feb-2005 08:03
User is offline View Users Profile Print this message


Sachgebiet 312

Posts: 4
Joined: 26-Jan-2004

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
Report this to a Moderator Report this to a Moderator
 9-Feb-2005 10:42
User is offline View Users Profile Print this message


Lutz Zollikofer

Posts: 44
Joined: 31-Jul-2003

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
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.