TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Location autofill from Browser Session
With the Location() Type column, there is a checkbox for "Automatically fill current location, if empty"...
This is non browser/device dependant...i.e. it doesn't matter whether you're using pc, Mac, iOS or android...It uses the browser sessions Lat/Long
But when you want to create a workflow trigger to populate Location(), only DeviceLat() or DeviceLong() can be used (or otherwise Geolocation API or similar is required...Too longwinded). This means that you need to setup a mobile device and use "Mobile Device Update" function....but this is limited to devices with no support for pc/Mac/linux
TLTR-------
Please add in:
BrowserLatitude()
BrowserLongitude()
as functions to support easy auto populate with workflows/formula functions
ID
1237
Category
Setup
Author

basenine
Date Created
11/13/2018 7:37:56 PM
Date Updated
2/22/2019 1:29:30 PM
Status
New Idea
Score
10
Promoted By
basenine
Comments
Kirill Bondar  Staff  11/15/2018 5:06:18 PM
Mobile app performs quite aggressively when it detects the need for coordinates (the presence of DeviceLocation() function in action assignments) - it **requires** your device to provide location with 30m accuracy and blocks all the other operation while working with GPS module. Yet this behavior is acceptable since it affects the only path - if you want the mobile app task to have location stamp, add DeviceLocation() to mobile app action.

With desktops it's not the case. Many of them do not have GPS at all and rely either on IP-address-to-location database or on user filled settings in control panel. So, this would be likely optional feature. Next, getting current location takes significant - for computers -- amount of time, couple of seconds. This makes it hard to use BrowserLocation() in formulas. If you attempt to view the form with BrowserLocation() formula on screen, how should it behave? What if BrowserLocation() is in view's filter? What should it return when used in periodic trigger's action when there is no user in context?
basenine 11/15/2018 5:58:37 PM
Yes. I see the problems that can arise if used in a formula.
How about having a built in action in the location column that can be used on specified trigger? Ie...a drop list of available columns from the table can be presented...a column is selected as the trigger...location populates when selected column is modified...
There’s obviously some code in the column that allows for automatic populate if blank...
Webpages also have the ‘remember my decision for a day...’ pop up warning. Could this be a solution?
Kirill Bondar  Staff  11/16/2018 7:58:50 AM
> location populates when selected column is modified...

This could be totally different story. See, trigger does not perform anything, it rather designates the moment to run the list of actions. But action can be run via change trigger or custom button (user-initiated) or without the user - by periodic/time trigger.

> Webpages also have the ‘remember my decision for a day...’ pop up warning. Could this be a solution?

When website asks for location, browser asks the user whether location API access should be enabled **for website**. But on desktops location services are often disabled at all - and sometimes not in browser rather somewhere at OS level.
basenine 11/16/2018 8:58:47 PM
Not necessarily obvious, but I don’t really expect to use the data gathered when performing task on a desktop.
It’s really a want/desire to have a simpler method to get location from mobile device rather than using the app. I’ve had limited success with the app (device location works well...just other functions seem hit and miss esp when starting record in one platform and finishing it off in another...

Phonegap??
Mike Nelson 2/22/2019 1:29:30 PM
Ok so I have ben following this as I am trying to do something similar but am running into issues.

So I have a Location() field called 'Location of Record' and in the field settings I have set to automatically fill current location if empty

I then have 2 triggers

The first is an any add or edit of the field 'Dispatch Time' the action is copy 'Location of Record' to 'location of dispatch'

the second is a trigger that on any add or edit of any record it empties 'location of record'

the idea with this is to capture the current location when someone dispatches themselves to a call

If I go into the record and edit the dispatch time the triggers work as they are supposed to and records the location at time of dispatch clears the location of record so that when the technician fills in arrival time it records that location to another field with a different trigger and then when they close out a call as well another trigger.

All works great !!! EXCEPT....

I have created buttons at the top of each table called 'Dispatch' and 'Arrival' so that rather than having to enter the work order scroll down and dispatch and save they can just click the dispatch button at the top and it fills in the Dispatched time. Problem is even thought I go in and can see that the system field 'date last modified' and 'modified by' changes when someone clicks the button the field 'record of location' does not fill in as when modified with the edit button. I have tried both creating an assignment as well as creating a new action from the button and both have the same result. Any ideas would be greatly appreciated.
Feedback
 
Back to Search Results