Wrap alias in TM1 Web view

Post Reply
User avatar
nlashin
Posts: 26
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2007
Location: Russia, Moscow

Wrap alias in TM1 Web view

Post by nlashin » Thu Dec 03, 2015 7:47 am

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 514 times

User avatar
Elessar
Posts: 95
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Re: Wrap alias in TM1 Web view

Post by Elessar » Thu Dec 03, 2015 11:02 am

Hello Nikita,

The only way is to create alias with shorter names.
You can also create a websheet with a fixed (shorter) column width
Sorry for my English ;)

User avatar
nlashin
Posts: 26
Joined: Tue Jun 18, 2013 10:24 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2007
Location: Russia, Moscow

Re: Wrap alias in TM1 Web view

Post by nlashin » Thu Dec 03, 2015 12:27 pm

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.

User avatar
tomok
MVP
Posts: 2318
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 » Thu Dec 03, 2015 12:56 pm

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.

konstantin-spb
Posts: 1
Joined: Thu Feb 20, 2014 8:42 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010
Location: Russia, Saint-Petersburg

Re: Wrap alias in TM1 Web view

Post by konstantin-spb » Thu Sep 14, 2017 9:57 am

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
Posts: 95
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Re: Wrap alias in TM1 Web view

Post by Elessar » Fri Sep 15, 2017 8:32 am

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)
Sorry for my English ;)

Drg
Posts: 53
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 » Fri Sep 15, 2017 1:01 pm

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

Post Reply