Update Table event in Java PX
We have an Update Table event on BOM tab of Parts that works correctly in Groovy Script PX – Agile 9.3.2.
While converting it to Java PX, where the methods change, the following snippet is unable to retrieve the dirty item when a new item is added to Redline BOM tab. It returns Null.
if (EventConstants.DIRTY_ROW_ACTION_ADD == dirtyRow.getAction() || EventConstants.DIRTY_ROW_ACTION_REDLINEADD == dirtyRow.getAction()) {
IItem dirtyItem = (IItem) dirtyRow.getReferent();
}
Also tried the below two methods, only to get Null returned.
Integer[] attIds = dirtyRow.getAttributeIds();
IEventDirtyCell[] dirtyCells = dirtyRow.getCells()
Any leads on this?