Hello,
I have an application where we need to get the location of the user. As of now, when the user fills the location data gets filtered according to that location, but it is not getting auto populated. It should change/update the location once the page is refreshed by identifying users location and then filter the data as per the location.
Hi Ankita ,
You need to implement some kind of auto refresh on the page to load the updated location everytime.
Regards,
-PJ-
Hi Pramod,
True. But my first query is how do I auto-fill the location field(It should identify location of the user and populate the field. Refreshing part should be taken care later I believe.
Hello Ankita,
The application you are developing, is it Reactive, Traditional Web or Mobile?
- Nikhil
Hi Ankita,
In the refresh action itself you can get the latest location probably by some google API or by getting the lat long and then bind it to the variable you are using .
In reactive or mobile as soon as the value will get updated the widget will refresh itself.
Pramod Jain wrote:
Ok. Let me try this. Thank you for quick reply.
Hi Nikhil,
Its traditional web application.
Ankita Kulkarni wrote:
So as Pramod suggested, you can pull the location data through Google API and always fetch the new one in the Preparation Action of your screen.
To fetch the location in web applcation, you can also refer to the previously answered question : https://www.outsystems.com/forums/discussion/34093/get-location/ from the forum.
Hope this helps..!!
Nikhil