How to listen to event on action only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to listen to event on action only
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.2
I want to listen on an WTPart action for "Actions-> Edit Common attributes". I am able to listen to event "PersistenceManagerEvent.UPDATE" and object type WTPartMaster. But i am facing the issue that this event triggers on every CAD check-in.
I am not able to differentiate the event on action and check-in. Is there any way to difference the event ?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks,
Was able to achieve from the workaround of find the modified date of the object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
To be sure to get the right event, you could overwrite the forms processor class.
com.ptc.windchill.enterprise.part.forms.EditPartCommonAttrsFormProcessor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @syalagudri ,
In the Listener class please add the condition to check whether it is a WTPartMaster object type or not.
if(obj instanceof WTPartMaster){
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Added. But on check-in also i get the same object type so not able to differentiate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello syalagudri,
I'm Charles from PTC Technical Support in Europe, I will provide you assistance on this question.
Can you review kb article CS147573 and let me know how it could help?
KR,
Charles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks,
Was able to achieve from the workaround of find the modified date of the object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello syalagudri,
Thanks for your feedback, and congrats to you for figuring out the solution.
Are there any details you can share how it got resolved?
I will be grateful if you can send me this information.
KR,
Charles.
![](/skins/images/695EE5AD3E567050FEDD72575855ED93/ptc_skin/images/icon_anonymous_message.png)