![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: How to automatically update an attribute during a transition Topic Summary: Created On: 7-Aug-2003 04:36 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I would like to query the "current assignee" for change requests. I have added an attribute called current_assignee. How do I assign values to current_assignee without user intervention? For example, during the "start here -> entered" transition, I would like to assign a literal to current_assignee.. Later, during the "entered->assigned" transition, I would like to copy the value of the "analyst" attribute to "current assignee", etc etc. Cheers Ken |
|
![]() |
|
![]() |
|
Salut,
I think you can't use CM Synergy triggers (see CM Synergy forum) because value can be overwitten by a Change Request modification. The only way known by me (may be another solution in 4.3), is to do a customization (a framework for CS), used to generate the package from the process. This is not a trivial solution :-( You must create in wsconfig/templates/pt/include/attr_controls a file with your attribute name current_assignee.CCM_STRING from base.CCM_STRING (CCM_STRING is the CS type declared in the process). This file is HTML format + servlet CS API code + javascript. Modify the file to set the value to the current user (user javascript variable) only on transition (current_assignee_formtype variable must be set to "TRANSITION" or "SUBMIT". Put this attribute (can be hidden) in transition window from the process. ------------------------- Pierre Guillet |
|
![]() |
|
![]() |
|
Hi there,
I had a look at the "CS Customization Reference->user actions->modify problems" showing some code modifying submission values. I have not worked out where the modifications should be made such that it will work and I don't have to redo the modifications everytime a CR process package is created and installed. After looking at the email trigger on CS4.3, I am also hoping that there is something in the CS perl api that will allow me to change a value of an attribute arbitrarily. Worst come to worst, the users will just have to manually update the value in question. Thanks |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.