Wrap alias in TM1 Web view

Post Reply
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Wrap alias in TM1 Web view

Post by nlashin »

Hello, guys!

Do you know any tm1 web configuration parameters to wrap or minimize alias name when using it in tm1 web view. You can see this problem at the picture below.
So width of the first column is not convenient.
Attachments
Too long alias name.jpg
Too long alias name.jpg (159.25 KiB) Viewed 5177 times
User avatar
Elessar
Community Contributor
Posts: 331
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Wrap alias in TM1 Web view

Post by Elessar »

Hello Nikita,

The only way is to create alias with shorter names.
You can also create a websheet with a fixed (shorter) column width
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 6th article - PAfE + VBA: Commit each cell without pressing “Commit” button.
User avatar
nlashin
Posts: 28
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: Planning Analytics 2.0
Excel Version: 365

Re: Wrap alias in TM1 Web view

Post by nlashin »

Hello Elessar!

Thanks for your answer. But I'm pretty sure that it is possible to change max column width in .css files. It is ok for me, if part of alias name won't be visible.
tomok
MVP
Posts: 2831
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Wrap alias in TM1 Web view

Post by tomok »

nlashin wrote:Thanks for your answer. But I'm pretty sure that it is possible to change max column width in .css files. It is ok for me, if part of alias name won't be visible.
To be fair, that really wasn't your question. Modifying the .css files within TM1Web is not a configuration parameter, it's a hack. I'm sure that there is a way to change a lot of display behavior in TM1Web by hacking the code. I wouldn't recommend it though because you'll have to redo your hack every time a new release or fixpack is applied.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
konstantin-spb
Posts: 9
Joined: Thu Feb 20, 2014 8:42 am
OLAP Product: TM1
Version: PA 2.0.9
Excel Version: 2016
Location: Russia, Saint-Petersburg

Re: Wrap alias in TM1 Web view

Post by konstantin-spb »

Find this code in TM1 css file (standaloner.css or contributor.css or whatever you use)

Code: Select all

.CVHeaderCell {
padding-right: 3px; 
padding-left: 3px; 
font-size: 8pt; 
font-family: Tahoma, 'Trebuchet MS', Arial, Verdana, Helvetica, sans-serif; 
color: #333333; 
background-color: #DFE3E8; 
border-right: 1px solid #E2E2E2; 
border-left-width: 0px; 
border-bottom: 1px solid #E2E2E2; 
border-top-width: 0px; 
margin: 0px; 
border:1px solid #B1B5BA;}
and append to the end of code:

Code: Select all

max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
This code set max width, truncate text and add ellipsis to the end of the text.
User avatar
Elessar
Community Contributor
Posts: 331
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Wrap alias in TM1 Web view

Post by Elessar »

Tom,
I agree it's a hack, but changing *.css files in TM1 10.1.* is encouraged by IBM: http://www-01.ibm.com/support/docview.w ... wg21634684

Note that changing .css files in PA is prohibited (also, CSSs in PA are built into compressed files and not so easily changeable)
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 6th article - PAfE + VBA: Commit each cell without pressing “Commit” button.
Drg
Regular Participant
Posts: 159
Joined: Fri Aug 12, 2016 10:02 am
OLAP Product: tm1
Version: 10.2.0 - 10.3.0
Excel Version: 2010

Re: Wrap alias in TM1 Web view

Post by Drg »

just need write you Javascript function check all data in table and change width in column, appent this in tm1web.js
Post Reply