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?

Add Comment
1 Answer(s)

This is resolved. getReferent() method worked.

Agile User Answered on June 13, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.