Autodesk Vault Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Change Order Events
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
61 Views, 1 Replies
01-09-2012 04:26 AM
I want to modify the Restrict Operations sample code to include a check before the state changes to Aproved. The UpdateChangeOrderLifecycleState event fires for all state changes - is there some way to fire only for state change to Approved? Any advice or sample code very much appreciated.
Re: Change Order Events
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-09-2012 06:36 AM in reply to:
Gerard.Treacy
Yes, you will get events for all Change Order state changes. That's the way it's designed to work.
If you are only interested in Approved changes, you will need to look at the event args and filter out all events that you don't care about.
Here is a blog article that contains some more sample code. It deals with file lifecycle states, which is a different set of APIs, but it shows how to filter based on event args.


