Hi,
I'm new to Vault and just start play with change order. I just found out CO does not tracking UDP change history. So I'm wondering if possible to create function, trigger by CO UDP change event, collect who, when, which UDP, old value and new value, write them to comments.
If you can provide the example code, or even point me where I can find the example code, I really appreciate your time.
Thanks
Wes
Hi Wes,
You could use this SDK sample to start with. It uses the EditChangeOrderEvents to cancel the edit:
AddHandler ChangeOrderService.EditChangeOrderEvents.GetRestrictions, AddressOf EditChangeOrderEvents_GetRestrictions
I did a quick test and the edit of the Change order is canceled when I try to edit a UDP of change order. You can change this example to use the Post event. ChangeOrderService.EditChangeOrderEvents.Post
The EditChangeOrderCommandEventArgs that is passed into the event handler has a ChangeOrderId property. I believe you could use this to get the UDP. I don't see an event in the Vault API that is going to give you the value that the property of the change order was changed to or what it was. You could create a custom way to do this.
This blog post could be helpful:
Thanks,
Wayne