![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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... |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.