<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tooltip HTML rounding decimals in InfraWorks Forum</title>
    <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10921132#M2925</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/492930"&gt;@ronnie.xue&lt;/a&gt;&amp;nbsp;thanks Ronnie, that works like a charm!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 15:14:01 GMT</pubDate>
    <dc:creator>John_de_Leeuw-NTI</dc:creator>
    <dc:date>2022-02-01T15:14:01Z</dc:date>
    <item>
      <title>Tooltip HTML rounding decimals</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10901060#M2921</link>
      <description>&lt;P&gt;I tried several Javascript functions to get my Tooltip numbers rounded to the nearest integer but none work in Tooltips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have a suggestion that really works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnDeLeeuw_0-1643023031476.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1015206iD3885D0C867F6DC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnDeLeeuw_0-1643023031476.png" alt="JohnDeLeeuw_0-1643023031476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 11:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10901060#M2921</guid>
      <dc:creator>John_de_Leeuw-NTI</dc:creator>
      <dc:date>2022-01-24T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tooltip HTML rounding decimals</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10904177#M2922</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2011095"&gt;@John_de_Leeuw-NTI&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is a known behavior in InfraWorks with customized tooltips, it's always displaying 15 digits.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The only workaround, for now, is to convert the numbers to strings in the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Karsten.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 11:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10904177#M2922</guid>
      <dc:creator>Karsten.Saenger</dc:creator>
      <dc:date>2022-01-25T11:44:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tooltip HTML rounding decimals</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10910127#M2923</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1157170"&gt;@Karsten.Saenger&lt;/a&gt;&amp;nbsp;, can you provide an example script because normal javascript isn't fully working inside tooltips. I tried looking at the&amp;nbsp;&lt;A href="http://qt-project.org/doc/qt-4.8/richtext-html-subset.html" target="_blank" rel="noopener"&gt;QT Developer Network site&lt;/A&gt;, mentioned &lt;A href="https://knowledge.autodesk.com/support/infraworks/learn-explore/caas/CloudHelp/cloudhelp/ENU/InfraWorks-Basics/files/GUID-6C7F1169-2EA7-4BF3-968D-70F48787657D-htm.html" target="_blank" rel="noopener"&gt;here in the online help&lt;/A&gt; but could not find any working example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code now:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;script&amp;gt;
var num = %USER_HOOGSTE_GOOT%;
var text = num.toString();
var result = text.slice(0, 4);
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And then try using the result in the HTML code write but that also seems difficult.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 11:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10910127#M2923</guid>
      <dc:creator>John_de_Leeuw-NTI</dc:creator>
      <dc:date>2022-01-27T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tooltip HTML rounding decimals</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10914828#M2924</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2011095"&gt;@John_de_Leeuw-NTI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, the tooltip only supports simple HTML tags that outlined here -&amp;nbsp;&lt;A href="https://doc.qt.io/qt-5/richtext-html-subset.html" target="_blank"&gt;Supported HTML Subset | Qt GUI 5.15.8 so javascript is not working there.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To use javascript, you'll need to either include a &amp;lt;img&amp;gt; or &amp;lt;iframe&amp;gt; tag in the script so that full HTML support is activated. For instance, here's a trick to display area with 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronniexue_2-1643421728174.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1018064iBE0D30F5298B53C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronniexue_2-1643421728174.png" alt="ronniexue_2-1643421728174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If only simple text is needed and the assets are imported, the conversion of tooltip can actually being done in import script in Data Source Configuration as well, for instance, here's how to set the tooltip of roads to the max speed with 2 decimal places&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronniexue_1-1643421598796.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1018062iF7916CF110C8E10D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronniexue_1-1643421598796.png" alt="ronniexue_1-1643421598796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 02:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10914828#M2924</guid>
      <dc:creator>ronnie.xue</dc:creator>
      <dc:date>2022-01-29T02:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tooltip HTML rounding decimals</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10921132#M2925</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/492930"&gt;@ronnie.xue&lt;/a&gt;&amp;nbsp;thanks Ronnie, that works like a charm!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 15:14:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/tooltip-html-rounding-decimals/m-p/10921132#M2925</guid>
      <dc:creator>John_de_Leeuw-NTI</dc:creator>
      <dc:date>2022-02-01T15:14:01Z</dc:date>
    </item>
  </channel>
</rss>

