Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Redundant property columns in parent-child level with showParent mode #226

Open
DmitryAEfimov opened this issue Oct 31, 2017 · 0 comments
Open

Comments

@DmitryAEfimov
Copy link

DmitryAEfimov commented Oct 31, 2017

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 #227 and apply if needed

In addition I've set actual pentaho repo url in root pom.xml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant