<?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 Qlikview - Tracking System using macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Tracking-System-using-macros/m-p/707181#M254828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;We are currently implementing a QV mapping application to track vehicles.&amp;nbsp; The mapping service we are using is by Idevio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The customer has provided us with webservice in which we enter the device number and it returns lat/long.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The way we approached it is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Dynamic Table – Containing Device IMEI no., Lat/Long which is to be used by Idevio Maps&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Listbox containing the Device Numbers which are to be selected and mapped &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Two buttons calling Macro subroutines - TrackOn and TrackOff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;TrackOn Marco Subroutine&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Loop Every 30 second&lt;/LI&gt;&lt;LI&gt;Loop For Each device&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;send the IMEI number to the webservice&lt;/LI&gt;&lt;LI&gt;receive the lat/long&lt;/LI&gt;&lt;LI&gt;Dynamic Insert/Update&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Tahoma','sans-serif'; color: #3d3d3d; background: white;"&gt;DynamicUpdateCommand&lt;/SPAN&gt; – first to insert the IMEI Devices and then for each iteration it updates the Table&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Idevio Maps is using the Dynamic Table so it updates the Lat/Long and display the new coordinate&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;TrackOff Macro Subroutine&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Delete the Table&lt;/LI&gt;&lt;LI&gt;Boolean to Turnoff the Tracking&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mapping.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63653_mapping.jpg" style="width: 620px; height: 491px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are able to properly receive Lat/Long from the Webservice and populate the Dynamic Table but the problem is that we have to do it every 30 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have put a Sleep 30 second delay between each group of devices after it receives the lat/long.&amp;nbsp; During the Sleep Time the application gets stuck and is non-responsive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the processing is too fast and the sleep is part of the process it is not refreshing the Dynamic Table and even the Dynamic Table is getting stuck.&amp;nbsp; Also the Macro is not working on the Server Side.&amp;nbsp; I have checked all the required boxes for enabling macros on the document as well as server side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option I was thinking is that have a DB Table of all the devices and then keep on updating them at every 30 seconds and then reload the QV Application.&amp;nbsp; This way the mapping table can just reload the data rather than being dynamic?&amp;nbsp; The problem here is again I have to put in a delay of 30 seconds.&amp;nbsp; The delay pauses the application as it is part of the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping that someone on the community has worked on an application like this and can share their experiences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 09:26:49 GMT</pubDate>
    <dc:creator>sjhussain</dc:creator>
    <dc:date>2014-08-04T09:26:49Z</dc:date>
    <item>
      <title>Qlikview - Tracking System using macros</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Tracking-System-using-macros/m-p/707181#M254828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Dear All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;We are currently implementing a QV mapping application to track vehicles.&amp;nbsp; The mapping service we are using is by Idevio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The customer has provided us with webservice in which we enter the device number and it returns lat/long.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The way we approached it is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Dynamic Table – Containing Device IMEI no., Lat/Long which is to be used by Idevio Maps&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Listbox containing the Device Numbers which are to be selected and mapped &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;* Two buttons calling Macro subroutines - TrackOn and TrackOff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;TrackOn Marco Subroutine&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Loop Every 30 second&lt;/LI&gt;&lt;LI&gt;Loop For Each device&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;send the IMEI number to the webservice&lt;/LI&gt;&lt;LI&gt;receive the lat/long&lt;/LI&gt;&lt;LI&gt;Dynamic Insert/Update&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Tahoma','sans-serif'; color: #3d3d3d; background: white;"&gt;DynamicUpdateCommand&lt;/SPAN&gt; – first to insert the IMEI Devices and then for each iteration it updates the Table&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Idevio Maps is using the Dynamic Table so it updates the Lat/Long and display the new coordinate&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;TrackOff Macro Subroutine&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Delete the Table&lt;/LI&gt;&lt;LI&gt;Boolean to Turnoff the Tracking&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mapping.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63653_mapping.jpg" style="width: 620px; height: 491px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are able to properly receive Lat/Long from the Webservice and populate the Dynamic Table but the problem is that we have to do it every 30 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have put a Sleep 30 second delay between each group of devices after it receives the lat/long.&amp;nbsp; During the Sleep Time the application gets stuck and is non-responsive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the processing is too fast and the sleep is part of the process it is not refreshing the Dynamic Table and even the Dynamic Table is getting stuck.&amp;nbsp; Also the Macro is not working on the Server Side.&amp;nbsp; I have checked all the required boxes for enabling macros on the document as well as server side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One option I was thinking is that have a DB Table of all the devices and then keep on updating them at every 30 seconds and then reload the QV Application.&amp;nbsp; This way the mapping table can just reload the data rather than being dynamic?&amp;nbsp; The problem here is again I have to put in a delay of 30 seconds.&amp;nbsp; The delay pauses the application as it is part of the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping that someone on the community has worked on an application like this and can share their experiences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 09:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Tracking-System-using-macros/m-p/707181#M254828</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2014-08-04T09:26:49Z</dc:date>
    </item>
  </channel>
</rss>

