42
Views
7
Comments
auto identify the location when the application loads in web application
Question

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.

2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Ankita ,

You need to implement some kind of auto refresh on the page to load the updated location everytime.


Regards,

-PJ-

UserImage.jpg
Ankita Kulkarni

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.


2019-07-05 10-57-41
Nikhil Purohit

Hello Ankita,

The application you are developing, is it Reactive, Traditional Web or Mobile?


- Nikhil

2025-08-22 10-19-44
Pramod Jain
 
MVP

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.

Regards,

-PJ-

UserImage.jpg
Ankita Kulkarni

Pramod Jain wrote:

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.

Regards,

-PJ-

 

 Hi Pramod,

Ok. Let me try this. Thank you for quick reply.

UserImage.jpg
Ankita Kulkarni

Hi Nikhil,

Its traditional web application.

2019-07-05 10-57-41
Nikhil Purohit

Ankita Kulkarni wrote:

Hi Nikhil,

Its traditional web application.

Hi Ankita,

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..!!

 Regards,

Nikhil

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.