I'm trying to display the Google Map Direction and calculate the distance between a user's location and a different entity's location. Both the user and the job entity have a field for full address and a Google Map which is working.
The user is assigned to the job via a Users Ajax but I can't get the address values to copy from the user to the job.
Google Map Direction from User to Job
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Google Map Direction from User to Job
Not supported.
Re: Google Map Direction from User to Job
Thanks for the answer,
Is there any workaround for this using an AJAX or SQL formula?
Also, how does the copy function work within the Users Ajax field?
Is there any workaround for this using an AJAX or SQL formula?
Also, how does the copy function work within the Users Ajax field?
Re: Google Map Direction from User to Job
Yes, why you don't use AJAX field with a SQL query ?
Can you provide me ID and type of fields, also ID entities and what field ID you want to get
Can you provide me ID and type of fields, also ID entities and what field ID you want to get
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Re: Google Map Direction from User to Job
The flow would be the following: a user and a job will have a static address within their page since they're both inside different entities.
On each job, we have to assign a single user by using a User Ajax field [511] (This has to be a User Ajax for other processes). Then we have to display a Distance Map field [743] where we specify the starting distance (the user's location [895] from entity [1]) to the job location (job address [230] within entity [21]).
My main issue is that I don't know how to pass the user location details over automatically when the user is assigned to the job.
On each job, we have to assign a single user by using a User Ajax field [511] (This has to be a User Ajax for other processes). Then we have to display a Distance Map field [743] where we specify the starting distance (the user's location [895] from entity [1]) to the job location (job address [230] within entity [21]).
My main issue is that I don't know how to pass the user location details over automatically when the user is assigned to the job.