if anyone's interested in debug.print T.I. to an html page

Post Reply
User avatar
Community Contributor
Posts: 117
Joined: Thu Aug 28, 2008 4:42 am
Location: Sydney, Australia

if anyone's interested in debug.print T.I. to an html page

Post by yyi » Fri Feb 20, 2015 12:42 am

Hi Everyone,

Not sure if this was already posted but a quick search didn't return anything similar so I've attached these 2 files.

T.I. can be called without parameters to write some test lines to html file. If the file doesn't exist, it creates one and if it does it appends to file.
{Set variables portion of the T.I. will need to change to your path, servername, adminhost}
Style sheet (css extension not uploadable) is to format the html page which can be modified to suit.

URL will be like this;

Hope you get some value from it.
cascading style sheet renamed as text file
(2.34 KiB) Downloaded 109 times
(4.27 KiB) Downloaded 103 times
win2012 svr: tm1 v10.2.2 x64, client v10.2.2 x64/PA 2.0, win10, excel 365.

User avatar
Posts: 1086
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: if anyone's interested in debug.print T.I. to an html pa

Post by qml » Fri Feb 20, 2015 11:29 am

Thanks for that, might come in handy one day.

Just one tip. Instead of this snippet:

Code: Select all

# exec cmd wait = 0, so inserting delay. 1sec = ~ 1,000,000
        n = 0;
        While (n <= 500000);
            n = n + 1;
i suggest you use this:

Code: Select all

SLEEP( 500 );
SLEEP is a useful TI and rules function that lets you specify precisely (in milliseconds) how long to pause for, without cooking the CPU unnecessarily.
Kamil Arendt

Post Reply