i need to have a button when press ill get the gps coordinates in a datacard text input
can you hel please ?
Solved! Go to Solution.
Set a button with variables:
UpdateContext({var_currentLat: Location.Latitude})
;;
UpdateContext({var_currentLong: Location.Longitude})
And a label text property :
"Latitude: " & var_currentLat & " Long" & var_currentLong
Press the button see if it works
You can set a variable with the GPS coordinates (using the Location signal), and set the Default property of the text input control to use that variable. For example, if you set this expression to the button's OnSelect property:
UpdateContext({lat: Location.Latitude, lng: Location.Longitude})
And you set the Default property of the text input control to
lat & "," & lng
Then when you press the button the coordinates will be shown in the text input control.
Set a button with variables:
UpdateContext({var_currentLat: Location.Latitude})
;;
UpdateContext({var_currentLong: Location.Longitude})
And a label text property :
"Latitude: " & var_currentLat & " Long" & var_currentLong
Press the button see if it works
This gives me My coordinates.
What if i want coordinates of another user in my organization.
something like :
Office365Users.UserProfileV2("abc@xyz.com").Location.Latitude
User | Count |
---|---|
256 | |
106 | |
87 | |
51 | |
43 |