Discussion Board for collaboration on QlikView Scripting.
It seems to be possible as presented in the "GPS Store Finder" application (here) to locate the position of the user, only in AJAX mode, with the help of the web browser.
The question is : how is it possible ? what must we do to put it in place ?
Any idea ?
Get the Project reference components, it has an Extension that is responsible for that.
If you get the downloadable project, the "find my location" button is a reference to the extension.
The extension must be installed in your application folder.
Hope it helps.
here it his the zip file.
extract it and double click on the .qar file.
Hope it helps...
It´s very interesting!!
When the user clicks the "find my location" button, the extension calls a method "navigator.geolocation.getCurrentPosition()" and gets the coordinates of the device.
Finally 2 document variables vLat (latitude), vLog (longitude) are set.
We are using it with success in one of our projects thought with some functional changes.
What problems are you having?
Mind the extension will only work with a GPS Enabled Browser, and in server Side environment (if you try the original project it will not work in QV Desktop).
Also, you will have to copy and adapt the Macros in the document (rezoom, rezoom2 )...
We have an server environment, and I also had installed the extension in the server.
In the first moment, I tried to use a custom App just creating the two variables as they say to, but with no success, so I copied the GPS Store Find App to server and tried to access it from my mobile (IOS) and no success.
The Macros (rezoom, rezoom2) are used to the map, in my app it will start more simple, I just need the coordinate in those variables.
Do you have any ideia about, what should I do?