Ron - Wednesday, April 27, 2011 8:28 AM:
Looking for a way to tell if a user deletes an affected item off an ECR. We have a method that captures when an item is added to an ECR, places a pending status on the affected item (Part or Document) but so far we have not been able to detect if a row (item) has been deleted which we need to know in order to clear the pending status. The method we are using is triggered using the OnAfterAdd, OnAfterUpdate as well as thru the ECR lifecycle so that at the end of the ECR workflow a method is used to clear the pending flag from all items on the ECR. The problem we have is detecting which item on the ECR is flagged to be removed when a user edits the ECR and deletes an item. Any help would be greatly appreciated Ron
Ratikant - Wednesday, April 27, 2011 9:05 AM:
why don't you try with the onBeforeDelete/onAfterdelete event .
Ron - Wednesday, April 27, 2011 9:09 AM:
If a user deletes more then one item how can we tell which items have been flagged for removal? we need to remove a pending flag set for each item removed.
Ron
Ron - Wednesday, April 27, 2011 9:38 AM:
Ok so thinking about this a little more, I see that I could place a method on the 'ECR Affected Item' and use the onBeforeDelete event or perhaps I could use the 'ECR Affected Item'[ relationship grid events onDeleteRow event.
Would there be a preferred way of doing this?
Ron