AnsweredAssumed Answered

Javascript Calculators : multiply a metric by 4

Question asked by youlzz on Apr 9, 2010
Latest reply on Apr 12, 2010 by youlzz
Hello,    I am trying to write a javascript calculator for Wily Introscope 8.0. The aim of the calculator is to multiply a metric "per interval" by 4 in order to get a result "by minute".  I followed the few examples given in the forum but I could not make it work as expected : my result always displays zero ....As you can see in the screenshot mult4_input.jpg, my input metric is always bigger than zero. Multiplied by 4, the result should not equal zero.  Does someone has an idea of what is going wrong ?  I would like to know as well where are stored the following debug strings : log.info("Mult4:"+"Called with " + metricData.length + " metrics.") ?  Many thanks in advance for your help  Julien  ps : in attachement : the .js file and two screenshots.  

Attachments

Outcomes