cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Create a new related item when an item is copied?

jarnett
1-Newbie

Create a new related item when an item is copied?

We are using MKS Integrity 2009. We have a type that we have named Change Control which can have various related tasks assigned to it. We have moments where we need to copy an existing Change Control and want new tasks assigned by MKS.

I have tried to copy the related task's field, but it copies the old tasks.

I have looked at the trigger definitions, but do not see a way to define "if type is copied"

Any assistance would be greatly appreciated.

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Jacon,

if I understand it right you like to get a full copy of

a) the base item

b) all related items as well.

c) get the new related items again linked to the copy in step a)

If this is what you want, then you need to enhance the trigger to do so.

Because this is rather an item branching which requires some more steps.

Regards

View solution in original post

4 REPLIES 4

Hi Jacon,

if I understand it right you like to get a full copy of

a) the base item

b) all related items as well.

c) get the new related items again linked to the copy in step a)

If this is what you want, then you need to enhance the trigger to do so.

Because this is rather an item branching which requires some more steps.

Regards

KaelLizak
14-Alexandrite
(To:VolkerEckardt)

Hello Jason Arnett‌,

Volker Eckardt‌ is right.  This doesn't work without more functionality being added to the trigger.  Also, keep in mind that single-value relationships can't point to both the original and the copy at the same time, which might complicate this issue for you.

Kind Regards,

Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager

Thanks for the input Volker. I ended up having to write a new trigger in order to get the functionality that I needed.

alabonte
14-Alexandrite
(To:jarnett)

Hello Jason Arnett,

If you still need assistance with this, can you please let us know the challenge(s) you are still facing?

It looks like Volker's solution is correct, would you please take the next step and mark this answer as "Correct Answer"?

This way other users reading the thread will know there is a solution, and which answer is correct. In addition, it makes the solution easier to find.

Thank you,

Adam

Top Tags