0000635: Indicators values not in order in long period project exports#15
0000635: Indicators values not in order in long period project exports#15manishvishnoi2 wants to merge 2 commits into
Conversation
|
Hi @manishvishnoi2, thank you for this PR. I am skeptical about the way you fixed the issue because you broke the immutability on the You will have to pass |
|
@numero-six Hello sir,I will look at the code again and try to fix this. |
|
@numero-six Plz look at the latest fix.It is done by working on Axis class creating a new function thus not breaking immutability. |
|
@manishvishnoi2 your second commit has the same problem, immutability is still broken. You just added another setter. You should try to solve the problem just like if the I see that one of them is in Please, look at the issue again, there should be a way. |
| Map<String, Integer> columnIndexMap = new HashMap<String, Integer>(); | ||
| for (PivotTableData.Axis axis : leaves) { | ||
| CalcUtils.putHeader(row, ++cellIndex, axis.getLabel()); | ||
| axis.setLabel(String.valueOf(cellIndex)); |
There was a problem hiding this comment.
@manishvishnoi2 : This needs an indentation fix before the pull request can be merged.
|
@manishvishnoi2 : Just checking if you had time to fix the issue with the immutability on the |
|
@spMohanty Yes i am working on it.I will look at reduntant spaces and indentation. |
|
@numero-six Hello sir, I looked at the problem again.I found out that populator is just filling by applying all the label parameter.Also, rather than using a constructor which has other parameters also , i think using a new method as i did is better.The reason i modified axis is because, to populate cells its using Month-Name string which repeats every 12th time.So we have to change the label which cannot be done at populator but at axis. |
|
Yeah, if you remove the setter and add a constructor with a label parameter, it would be a better option. |
Fixes 0000635.
Attached example :
Project_synthesis_20160311224211.xls.zip