Hi Team,
Trying to track the confirmation of a purchase order via x++, below are what I've already tried but nothing works
1. Added post event handlers on the Tables:
- PurchTable - On the Update method, trying to check if the status of the document state has been changed to Confirmed.
- PurchParmTable - On the insert method, from the looks of it, whenever a confirmation was done on a Purchase order, a record here is insert, so basically Im looking to just trigger from that.
2. Did some overlayering on the button click of the "Confirm" on purchase order, this one works, but if the confirmation didnt come in from the button click, it does not.
3. Did some overlayering on the PurchFormLetter class on the main method, this one looks like it works, but the issue is when multiple PO's are selected, gets really tricky.
So with those options, I think the reason why I cannot track the changes is because of the nature or the Purchase order form is that, the data only changes are applied directly on the datasource. Because if you would look athe screenshot below, before the breakpoint, the state of the po is not yet confirmed, but after it, it becomes confirmed, I added breakpoints on all the tables related to the operation, but none of those were hit.
Let me know how I can overcome this. Thanks.
*This post is locked for comments
I have the same question (0) 
		

 Report
Report All responses (
 All responses ( Answers (
 Answers (