Hello there!
My mdx query looks like SELECT [Measures] ON Columns, [Dimension] ON Rows from [Cube]
where Dimension is a dimension with parent-child level. Also I have a level property and TableRenderer.propertyCollector is set to render "Property" as table column.
When I render a result table with showParent mode I expect to meet property column only once per level per row, but it was cloned for each Ievel member, i.e.
parent row looks like: parent - parentProperty - null - null - parentMeasure
and child row looks like: parent - parentProperty - child - childProperty - childMeasure
The cause is in TableHeaderNode#addMemberProperties. Method copies level properties for all it's members.
Also I noticed header row's number of
tags ceases to correlate with data row's calculated colspan while parent node expanding
I've fix it. Create private boolean TableHeaderNode#isLastInLevel() and allow creation when it returns true. Review pls PR https://github.com/mysticfall/pivot4j/pull/227 and apply if needed
In addition I've set actual pentaho repo url in root pom.xml
Hello there! My mdx query looks like
SELECT [Measures] ON Columns, [Dimension] ON Rows from [Cube]
where Dimension is a dimension with parent-child level. Also I have a level property and TableRenderer.propertyCollector is set to render "Property" as table column.When I render a result table with showParent mode I expect to meet property column only once per level per row, but it was cloned for each Ievel member, i.e. parent row looks like: parent - parentProperty - null - null - parentMeasure and child row looks like: parent - parentProperty - child - childProperty - childMeasure
The cause is in TableHeaderNode#addMemberProperties. Method copies level properties for all it's members. Also I noticed header row's number of
I've fix it. Create private boolean TableHeaderNode#isLastInLevel() and allow creation when it returns true. Review pls PR https://github.com/mysticfall/pivot4j/pull/227 and apply if needed
In addition I've set actual pentaho repo url in root pom.xml