on 09-22-2016 7:18 AM
Hi Experts,
We use BW Query as source for building Dashboards using Design Studio.
We have requirement to hide Dimension Columns but still retain the values. I followed the steps in below link.
http://www.clariba.com/blog/designstudiocrosstabcomponent
I used below code and it seems to not work as expected.
.one .sapzencrosstab-HeaderRow>td:nth-child(1) {
display: none !important;
}
When the index value is 1, it simply hides just the measure..
Can anyone please help?
Thanks,
A
Hi Arun,
Did you try setting the Member Display property of the dimensions to "No Display"?
I think it should work and just display the key figures.
In the Initial View right click on the dimension and from the Member Display sub-menu select No Display.
Thank you.
Regards,
Swapnil Koti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun,
Your CSS selector uses the class .sapzencrosstab-HeaderRow which is part of the col headers table entries too. That is why it hides first measure as well. You can try the following more selective approach instead:
.one .sapzencrosstab-DimensionHeaderArea .sapzencrosstab-HeaderRow > td:nth-child(1) {
display: none !important;
}
.one .sapzencrosstab-RowHeaderArea .sapzencrosstab-HeaderRow > td:nth-child(1){
display: none !important;
}
Of course not having any leading characteristic causes the BEx query to sum up all individual values. Why would you try to hide it and then put new texts? The correct way of doing this would be to alter the texts on the source.
Kind regards
Martin
Hello Arun,
Instead of hiding the column and using text boxes would make layout complex .Use the below css to replace the Dimension text with your preferred text row by row.
.one .sapzencrosstab-RowHeaderArea> tbody > tr:nth-child(1) > td:nth-child(1):after{
content:"Row 1";
}
.one .sapzencrosstab-RowHeaderArea> tbody > tr:nth-child(2) > td:nth-child(1):after{
content:"Row 2";
}
.one .sapzencrosstab-RowHeaderArea> tbody > tr:nth-child(3) > td:nth-child(1):after{
content:"Row 3";
}
.one .sapzencrosstab-RowHeaderArea> tbody > tr:nth-child(4) > td:nth-child(1):after{
content:"Row 4";
}
.one .sapzencrosstab-RowHeaderArea> tbody > tr:nth-child(5) > td:nth-child(1):after{
content:"Row 5";
}
.one .sapzencrosstab-RowHeaderArea> tbody > tr > td > div > div{
visibility:hidden;
}
Regards
Dinesh
Hi Arun,
The css you provided hides the complete first column of the Column Header area with some minor layout glitches. Where you trying to target the row headers instead? A screenshot of what you are trying to achieve would help us understand what you are looking for exactly.
Did you consider removing the dimension on Design Studio from the query that is assigned to the crosstab and maintaining a copy of the query including it? That way you could capture user interaction on the crosstab without that dimension and forward the selection to the other query which includes it, without messing with your layout. In order to do so you would need the Design Studio Scripting methods of the Crosstab getSelection or getSelectedMember.
Let us know if you need some more clarification.
Kind regards
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Arun,
Just to confirm - Can you give a snapshot of your Crosstab highlighting which area you exactly want to hide?
Regards
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.