07-25-2012 03:19 AM
I'm coding a very simple plugin who has to sum a custom fied from products and put the result in another custom field in the opportunity (like the "opportunity total does" with the total of each product)
It's working perfectly but I need to hit F5 to see the sum in the opportunity custom field. Is there a way to catch the closing event from the "add/edit product" window ?
07-25-2012 06:34 AM
There's not an event for montiroing that form closing, however calling the update method for the current opportunity ought to show the changes.
If for some reason it isn't, you can also refresh the view you're in:
07-25-2012 08:53 AM
07-25-2012 10:13 AM
That's surprising and sounds inconsistent, I'll have to take a look at that.
Is Opportunity.Updated not firing either? The OpportunityProduct class also has a Updated event.