Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Persistent Trigger on Object Text
Topic Summary:
Created On: 4-Mar-2003 16:48
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
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 nick delisi, on Friday, March 7, 2003 9:45 PM

Answer:
I modified my code to act with a few Persistent Triggers in a way that it applied the functionality I needed

Mainly two triggers.

1.) A pre open on the object, GUI pops up for a Synergy Task
User will always have a Synergy Task when going into an object when our Requirement Life Cycle is at a given point for that object. Record the Synergy Task to the DOORSHOME Directory, for Future Reference.
User has two options in the GUI either to apply a valid number or close it. So if the user closes the GUI we stop the event from happening. With the trigPreConFail Trigger Status Function.

2.)A post modify trigger on the Attributes of interest, if modified the Synergy Task is populated with what the user entered into the GUI previously. If not modified, nothing gets changed.

-Nick DeLisi



 4-Mar-2003 16:48
User is offline View Users Profile Print this message


nick delisi

Posts: 5
Joined: 10-Oct-2002

I have a persistent trigger acting on the object text.

So if it is modified the trigger executes.

Is there a way to have a trigger act on the object text in a way that it will boot the users out if they try to modify object text?

for example, say you go in and type some stuff in the Object Text and then you get out of the object by hitting the escape key, no changes were then made to the Object Text, nothing is recorded in the history.

Is there a way to implement something like this?
From what I can see, it is not possible with a trigger.

Any suggestions appreciated.

-Nick
Report this to a Moderator Report this to a Moderator
 5-Mar-2003 00:46
User is offline View Users Profile Print this message


Nandan Banodkar

Posts: 22
Joined: 1-Oct-2002

Hi Nick,

This one is quite interesting. I tried a few things with dynamic triggers, whereby I am able to restore the original text, however being "Object Text", I cannot eliminate the history-records.

The worst thing is because I used 2 triggers [sync and save], I get 2 history records for each event.

Ultimately I was wondering why you would require such triggers, can you not limit the access rights of users to avoid modification of objects or some of the more usual ways in DOORS to achieve the effect ?

-------------------------

Nandan Banodkar

(nandanbanodkar@hotmail.com)
Report this to a Moderator Report this to a Moderator
 5-Mar-2003 17:27
User is offline View Users Profile Print this message


nick delisi

Posts: 5
Joined: 10-Oct-2002

I want to limit the modification of the object text, because our requirements follow a lifecycle, so once a requirement reaches a certain state in the lifecycle, the trigger will execute to tell the user to enter in a Synergy Task for a CR.

So no modifications can happen to the Object Text until a Synergy Task is enetered.

If I limit the access rights to users, then that can get messy, you can lock down the Object Text to certain users, but it still does not meet my requirements of having them associate a change without a Synergy Task.

-Nick
Report this to a Moderator Report this to a Moderator
 7-Mar-2003 21:44
User is offline View Users Profile Print this message


nick delisi

Posts: 5
Joined: 10-Oct-2002

Answer Answer
I modified my code to act with a few Persistent Triggers in a way that it applied the functionality I needed

Mainly two triggers.

1.) A pre open on the object, GUI pops up for a Synergy Task
User will always have a Synergy Task when going into an object when our Requirement Life Cycle is at a given point for that object. Record the Synergy Task to the DOORSHOME Directory, for Future Reference.
User has two options in the GUI either to apply a valid number or close it. So if the user closes the GUI we stop the event from happening. With the trigPreConFail Trigger Status Function.

2.)A post modify trigger on the Attributes of interest, if modified the Synergy Task is populated with what the user entered into the GUI previously. If not modified, nothing gets changed.

-Nick DeLisi



Report this to a Moderator Report this to a Moderator
 8-Mar-2003 18:22
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

Nick:

I would like to get your help with persistent triggers.

I have a pre-modify trigger on ClosureStatus attribute to pop-up a form.

The user has a choice to enter Comments or not in the form. They can close the form if they choose not to enter comments at any time

I am trying to set up a trigger on ClosureStatus attribute to prevent a user from entering "Closed" if the Comments attribute remains empty. Do I need a post-modify trigger on the same attribute?

I want to restore the original value in ClosureStatus e.g. ("Opened", "Deferred") from the history records
if the ClosureComments is empty.

I would appreciate any help you could share with me.

Thanks

Janet Ma
janet.ma@gdcanada.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
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.