Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was 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

Description

@DmitryAEfimov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions