Page 1 of 1

Wrap alias in TM1 Web view

Posted: Thu Dec 03, 2015 7:47 am
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.

Re: Wrap alias in TM1 Web view

Posted: Thu Dec 03, 2015 11:02 am
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

Re: Wrap alias in TM1 Web view

Posted: Thu Dec 03, 2015 12:27 pm
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.

Re: Wrap alias in TM1 Web view

Posted: Thu Dec 03, 2015 12:56 pm
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.

Re: Wrap alias in TM1 Web view

Posted: Thu Sep 14, 2017 9:57 am
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.

Re: Wrap alias in TM1 Web view

Posted: Fri Sep 15, 2017 8:32 am
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)

Re: Wrap alias in TM1 Web view

Posted: Fri Sep 15, 2017 1:01 pm
by Drg
just need write you Javascript function check all data in table and change width in column, appent this in tm1web.js