IDEMPIERE-4835 Grid View: Implement optional hide empty column feature (#767)

refine auto hide rule for new row
This commit is contained in:
hengsin 2021-07-06 02:29:15 +08:00 committed by GitHub
parent d7c0ebf980
commit 7d01f41f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -775,6 +775,13 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
if (!Util.isEmpty(display, true)) {
hideColumn = false;
break;
} else if (gridTab.getCurrentRow() == rowIndex && gridTab.isNew()) {
if (gridField[index].isEditable(false) && (gridField[index].isMandatory(false) || !Util.isEmpty(gridField[index].getVO().MandatoryLogic)
|| !Util.isEmpty(gridField[index].getVO().DisplayLogic)
|| !Util.isEmpty(gridField[index].getVO().ReadOnlyLogic))) {
hideColumn = false;
break;
}
}
}
}