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: Appending text to an text-attribute on a transition
Topic Summary: Simple way of doing this?
Created On: 23-Mar-2005 16:22
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.
 23-Mar-2005 16:22
User is offline View Users Profile Print this message


Thomas Thull

Posts: 6
Joined: 4-Jul-2003

Hi,

in our company there was the need to append and not to replace the content of commentary fields while doing a transition. In addition there should not be the possibility to modify the former content.
This is important, if a CR goes forth and back several times in his lifecycle and you don't want to lose the older information (no, the transition_log is no help in this case...).

On each transition form we have the _COMMENTS pseudo-attribute (as a mandatory field) and in each state we have defined a different text attribute to be filled with the content of _COMMENTS after a transition to that state.
Now let's consider this (leaving roles aside): In our lifecycle you have the possibility to make a transition from resolved to in_test. Another person can transition it back to resolved and after some time it is brought back to in_test. While transitioning to in_test an attribute called in_test_comment is filled with the content of the _COMMENTS variable. The first time the in_test_comment attribute is created. The second time the content is overwritten!
Up to now we have a workaround written in JavaScript which is called within a customized base_transition_by_column template: It reads the old content of the text attribute and adds the new content at the end (by adding the actual user_name and a time stamp). This works fine and is part of the template we use for creating the packages. The only problem is that we have to maintain a growing list of possible transitions and transition attributes to serve the JS-script...

Is there a simpler way to realize our request? One can see that in the base.CCM_TEXT control there is a function SUB_ATTR_append already implemented. Is it possible to take advantage out of that? A very similar process must be implemented with the transition_log...

Any help would be appreciated

Thomas

PS: And well, yes we know that we could probably realize that with the perl API...
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.