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

Post Reply
User avatar
yyi
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;
file://tm1server/Servers/All/h_LogMain_Production.html


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

User avatar
qml
MVP
Posts: 1081
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.8 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;
        End;
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