Hi all,
Again I have something that is a major stumper. I have managed to figure out previous problems I have had and now I have an even tougher one.
I need to try to get the tranid in the nonconf table for the record on the PO Receipts tab in Inspection Processing. I have gotten this going for the Inventory and Material and it works great, but I need to get this for the PO Receipts too. I want to be able to write in the character01 and 02 fields for the specific receipt before the Inspection is saved and the DMR number is created.
I have tried a trace to see where/when the DMR is created or to get the tranid, but nowhere in the trace does it show any tranid number or DMR number being added to the nonconf table, yet the record shows up and a messagebox pops up saying the DMR number was created and gets written to the nonconf table. I have tried all the before adapter methods (and after adapter) to see when one of them is hit, but none ever are. I've pretty much given up on trying to get at the nonconf record before it is written, but now even if I could get to the tranid after the nonconf is written, I guess that would be ok. I just can't see how to get this in my code.
So, basically I need to figure out how to write to the nonconf record for the failed PO Receipts. I used the tranid in the Inventory and Material tabs, but those look to work much differently than the PO Receipts tab. Does anyone have any ideas how I can get the tranid of the new record through code? If there is a different way of getting this record, I'm open to that too. I appreciate any help(especially if there are examples)!! Thanks!
Kurt
Again I have something that is a major stumper. I have managed to figure out previous problems I have had and now I have an even tougher one.
I need to try to get the tranid in the nonconf table for the record on the PO Receipts tab in Inspection Processing. I have gotten this going for the Inventory and Material and it works great, but I need to get this for the PO Receipts too. I want to be able to write in the character01 and 02 fields for the specific receipt before the Inspection is saved and the DMR number is created.
I have tried a trace to see where/when the DMR is created or to get the tranid, but nowhere in the trace does it show any tranid number or DMR number being added to the nonconf table, yet the record shows up and a messagebox pops up saying the DMR number was created and gets written to the nonconf table. I have tried all the before adapter methods (and after adapter) to see when one of them is hit, but none ever are. I've pretty much given up on trying to get at the nonconf record before it is written, but now even if I could get to the tranid after the nonconf is written, I guess that would be ok. I just can't see how to get this in my code.
So, basically I need to figure out how to write to the nonconf record for the failed PO Receipts. I used the tranid in the Inventory and Material tabs, but those look to work much differently than the PO Receipts tab. Does anyone have any ideas how I can get the tranid of the new record through code? If there is a different way of getting this record, I'm open to that too. I appreciate any help(especially if there are examples)!! Thanks!
Kurt