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: Check for duplicates on submit
Topic Summary:
Created On: 4-Aug-2003 18:31
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.
Answer This question was answered by Pierre Guillet, on Tuesday, August 5, 2003 8:56 PM

Answer:
There are two ways to control CR:
    the TRELATION which defines a pre condition(defined in $CCH_HOME/etc/ptcli.cfg)

    the Trigger Definition File which defines a pretransition


TRELATION cannot be applied because the CR must exist to compute the condition.
You can use the Trigger Definition File to launch a script. The script must open a CM Session (you can't do ccm operationsuery... from the trigger), does checks and returns failure it detects duplicated CR.
Warning: If the pretransition fails, the entire transaction will fail: The message in CS will not be explicit and all data entered by him will be lost.

See yourbase/lib/motify/readme to write the trigger.
 4-Aug-2003 18:31
User is offline View Users Profile Print this message


Terrence Carpenter

Posts: 25
Joined: 10-Jul-2003

Hello!
In CS4.2, is there a "built-in" way to check for possible duplicate CRs on a submit of a new CR and inform the user?

Thanks,
Terry

-------------------------
Terry Carpenter
Report this to a Moderator Report this to a Moderator
 5-Aug-2003 09:38
User is offline View Users Profile Print this message


Pierre Guillet

Posts: 21
Joined: 4-Jul-2003

Answer Answer
There are two ways to control CR:
    the TRELATION which defines a pre condition(defined in $CCH_HOME/etc/ptcli.cfg)

    the Trigger Definition File which defines a pretransition


TRELATION cannot be applied because the CR must exist to compute the condition.
You can use the Trigger Definition File to launch a script. The script must open a CM Session (you can't do ccm operationsuery... from the trigger), does checks and returns failure it detects duplicated CR.
Warning: If the pretransition fails, the entire transaction will fail: The message in CS will not be explicit and all data entered by him will be lost.

See yourbase/lib/motify/readme to write the trigger.


-------------------------
Pierre Guillet
Report this to a Moderator Report this to a Moderator
 5-Aug-2003 20:57
User is offline View Users Profile Print this message


Terrence Carpenter

Posts: 25
Joined: 10-Jul-2003

Pierre,
Thanks alot for the reply! I'll try the trigger script.

Terry

-------------------------
Terry Carpenter
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.