diff --git a/pivot4j-core/src/main/java/org/pivot4j/ui/table/TableHeaderNode.java b/pivot4j-core/src/main/java/org/pivot4j/ui/table/TableHeaderNode.java index 867fdb10..dac42ce0 100644 --- a/pivot4j-core/src/main/java/org/pivot4j/ui/table/TableHeaderNode.java +++ b/pivot4j-core/src/main/java/org/pivot4j/ui/table/TableHeaderNode.java @@ -252,7 +252,9 @@ void addMemberProperties() { List> children = null; - if (getMember() != null) { + // Should render level properties only once behind the latest + if (getMember() != null && isLastInLevel()) { + List levels = getReference().getLevels(getHierarchy()); boolean showParent = getReference().getRenderer().getShowParentMembers(); @@ -319,6 +321,18 @@ void addMemberProperties() { } } + private boolean isLastInLevel() { + if (getChildCount() == 0) { + return true; + } + + TableHeaderNode childNode = (TableHeaderNode) getChildren().get(0); + if (getMember().getLevel().getDepth() == childNode.getMember().getLevel().getDepth()) { + return !OlapUtils.equals(getHierarchy(), childNode.getHierarchy()); + } + return true; + } + void mergeChildren() { List> children = new ArrayList>(getChildren()); diff --git a/pom.xml b/pom.xml index f7bc0b7a..084a3f40 100644 --- a/pom.xml +++ b/pom.xml @@ -535,7 +535,7 @@ It aims to leverage mature but now discontinued JPivot project's codebase to mak pentaho Pentaho Repository - http://repository.pentaho.org/artifactory/repo/ + https://public.nexus.pentaho.org/content/repositories/omni/