diff --git a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java index 3fba57d..eb3f007 100644 --- a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java +++ b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java @@ -187,13 +187,14 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic DynamicObject dynamicObject = subEntryEntity.get(0); DynamicObject dynamicObject2 = (DynamicObject) dynamicObject.getParent(); Long pkValue = (Long) dynamicObject2.getPkValue(); - for (DynamicObject object : productEntry) { - Long id = (Long) object.getPkValue(); + for (int i = 0; i < productEntry.size(); i++) { + DynamicObject dynamicObject1 = productEntry.get(i); + Long id = (Long)dynamicObject1.getPkValue(); if (pkValue.compareTo(id)==0){ - object.set("productentry_buildingarea",publicAndInside); + dynamicObject1.set("productentry_buildingarea",publicAndInside); + this.getView().updateView("productentry_buildingarea",i); break; } } - this.getView().updateView(PRODUCT_ENTRY); } }