API to throw Error message in Workspace using Event Listener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
API to throw Error message in Workspace using Event Listener
Hi All,
I have created the Check In Event Listener for CAD Document with WTPart. My Listener searches for WTPart in Windchill and it associates as Content Link for CAD Document while Checking through work group manager. If WTPart is not existed in Windchill Check in should be failed and a error message in the Workspace. Can any one provide the API.
Thanks,
Hemanth kumar
- Labels:
-
API
- Tags:
- group discussion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Throw a wt.util.WTException :
The checkin will fails, and you'll have a notification in the event window.
You can provide a localized message, as one of WTException's constructors can be build with a WTMessage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sorry to slightly hijack this thread...
Is it possible to display a message back to the user WITHOUT vetoing the checkin? If the process I'm running creates a warning that the user should see but not stop them from checking in?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I know how to add events in the event manager, but within a full custom task.
But in a listener, I don't know.
The only thing you can do is send an exception, so maybe another exception than WTexception.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
