tag:blogger.com,1999:blog-1078032318127767231.post6163545328396236393..comments2024-03-20T01:42:16.872-05:00Comments on Spotfire Developer: Gauge.js in SpotfireJose Leviaguirrehttp://www.blogger.com/profile/12377756211132280060noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-1078032318127767231.post-53102221300813390862019-09-17T01:24:58.556-05:002019-09-17T01:24:58.556-05:00Hi Jose,
Sorry, I didn't notice the top memo, ...Hi Jose,<br />Sorry, I didn't notice the top memo, because I use the version 10.3 of Spotfire , it's not work.<br />I also have the solution from TIBCO support, <br />add the button in HTML, and add below code in JS:<br />"$("#myButton").button().bind('click', refreshGauge1)"<br />when click the button, the calculated value can pass into JS.Mike Wenghttps://www.blogger.com/profile/10096195315155058774noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-28472418488252064702019-09-12T04:25:00.290-05:002019-09-12T04:25:00.290-05:00Hi Jose,
I also have the problem for "val = p...Hi Jose,<br />I also have the problem for "val = parseInt($("#calcValue1").text()) gives me a Nan when I print it", but I am sure that the calcValue1 don't have any formatting, it seems the calcValue1 don't pass into yourGauge.js.<br />Do you have any idea to resolve this problem?Mike Wenghttps://www.blogger.com/profile/10096195315155058774noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-72001441165353313772019-01-22T09:55:43.404-06:002019-01-22T09:55:43.404-06:00Hello Jason,
You can use a setInterval function....Hello Jason, <br /><br />You can use a setInterval function. It takes a function as an argument and the number of seconds you want the function to run. for example: setInterval(refreshGauge,1000)<br /><br />Another option is to refresh you gauge every time a calculated value changes. If the .on('DOMSubtreeModified') does not work, try the <i>MutationObserver</i> as seen in <a href="https://spotfired.blogspot.com/2017/09/trigger-javascript-from-dropdown-list.html" rel="nofollow">this example</a> Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-8416450932301749212019-01-22T08:16:10.806-06:002019-01-22T08:16:10.806-06:00Hi Jose great stuff. I have a live view connectio...Hi Jose great stuff. I have a live view connection and a calculated value connected to a column from that data table. The data is changing each second but can't get the gauges to adjust with it. I get a reference error: Donut is not defined for the donut example. Any help would be appreciated! thanks Jasonhttps://www.blogger.com/profile/13841700179640389365noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-26505843520678551902019-01-17T11:34:58.144-06:002019-01-17T11:34:58.144-06:00Hola BCauich. Mandame un mensaje a spotfired arrob...Hola BCauich. Mandame un mensaje a spotfired arroba kamarble Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-74688722727675707422019-01-07T18:05:48.652-06:002019-01-07T18:05:48.652-06:00Buenas tardes.
Estoy implementando el Gauge.js ve...Buenas tardes.<br /><br />Estoy implementando el Gauge.js versión 1.3.6 javascript al Spotfire, tengo 4 Gaujes diferentes una en un area de texto diferente, interactua bien con el dato calculado, mi problema es que al cerrar el proyecto y volverlo a abrir los gauges desaparecen, se ve de nuevo al editar el area de texto haga una referencia al gauge.js guargar los cambio y regresarle el script correspondiente.<br /><br /><br />Agradesco cualquier comentario.BCauichhttps://www.blogger.com/profile/12678283754005199050noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-49203044690024779062018-11-16T07:09:16.896-06:002018-11-16T07:09:16.896-06:00Hi I was able to make this work with range from 0-...Hi I was able to make this work with range from 0-100 but the only problem I face is that every time I activate that tab it shows green gauge and once I open the script using edit and close it refreshes. How do I force it to refresh every time I am on the active pageAnonymoushttps://www.blogger.com/profile/18039563152494401805noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-26452920430731477342018-05-02T06:53:22.305-05:002018-05-02T06:53:22.305-05:00Hello Vendash. Make sure your don't have any c...Hello Vendash. Make sure your don't have any calcValue1 formatting. For example, if your value is "$44" or "44%" javascript will not be able to parseIntJose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-38805982859635823532018-05-02T06:22:40.817-05:002018-05-02T06:22:40.817-05:00Hi Joe,
val = parseInt($("#calcValue1")...Hi Joe,<br /><br />val = parseInt($("#calcValue1").text()) gives me a Nan when i print it.<br />What is the best way to get the value of calculated value in Javascript?Anonymoushttps://www.blogger.com/profile/18099787761504515778noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-13978070232832533872017-10-26T21:03:57.512-05:002017-10-26T21:03:57.512-05:00Michel,
If you dont see that option is because y...Michel, <br /><br />If you dont see that option is because you do not have permission to do so. Contact your spotfire admin to disable html sanitation.Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-70098627681407691852017-10-25T05:18:34.190-05:002017-10-25T05:18:34.190-05:00Hi There,
Thanks a lot for sharing this.
I stumb...Hi There,<br /><br />Thanks a lot for sharing this.<br /><br />I stumble accross the same problem as Franck.<br />I'm trying to use the gauge in Spotfire Desktop. <br />And there I can't find the same preference pane as the one mentionned above.<br />Is there a way to make this work?<br /><br />Thanks a lot.<br /><br />MichelMitchhttps://www.blogger.com/profile/06621942688263347716noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-67331507593387528072017-04-25T13:55:41.658-05:002017-04-25T13:55:41.658-05:00Hello Franck,
You need to tell your spotfire adm...Hello Franck, <br /><br />You need to tell your spotfire admin to turn off html sanitizing from tools>admin manager>preferences>TextArea>TAPreferences>PerfomrHtmlSanitation:falseJose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-45515541007296281402017-04-24T08:10:21.279-05:002017-04-24T08:10:21.279-05:00Hi
Not sure my previous comment got through so so...Hi<br /><br />Not sure my previous comment got through so sorry for reposting if it did...<br /><br />I was wondering how you made 'canvas' to work since the HTML editor complains that it is not supported?<br /><br />Thanks a lotAnonymoushttps://www.blogger.com/profile/13219345450767841148noreply@blogger.com