Convertir URL

Hello, I ask for your help regarding the Appsheet,
let me explain:
In my database a Sheets spreadsheet, I have a column 'Place ID Lieu' which the establishment ID, in another column I have this function:
=IF(R3>"";HYPERTEXT_LINK("https://www.google.com/maps/search/?api=1&query=Google&query_place_id="&R3;B3);"")

to get :
https://www.google.com/maps/search/?api=1&query=Google&query_place_id=ChIJZw5H3Xjr0BIRUpBAi9-RQZ0

In AppSheet :
I tried this kind of conversion to make it a URL
HYPERLINK(
CONCATENATE(
"https://www.google.com/maps/search/?api=1&query=Google&query_place_id=",
ENCODEURL([Place ID Place])
),
("Search for " & [Link] & " on Google")
)
But that does nothing. I specify that I start with AppSheet

Thank you for your help

Solved Solved
0 14 845
2 ACCEPTED SOLUTIONS

Yes, and for the location this is as simple also: just provide the address, the Google Maps button will be available automatically.


@Aurelien wrote:

Also:

Since it seems you wish to use Google Maps, if you have the address you can select the type Address. That will automatically create the action for opening a map view, with two action buttons: one for seeing the map, the other one for seeing the route to the destination.

Aurelien_1-1676990071173.png


Moreover, if the address is empty, then the google maps button won't be displayed.


@AVista wrote:

What if I have an empty Place ID? not to display the button


You may want to add a show_if condition to your column: 

ISNOTBLANK([Place ID])

Aurelien_1-1677137819802.png

 

Aurelien_0-1677137799869.png

Aurelien_2-1677137842221.png

For reference:

Conditionally show or hide a column value (Show_If) - AppSheet Help

 

View solution in original post

Aurelien
Google Developer Expert
Google Developer Expert

What if you use your AppSheet mobile app directly?

Unfortunately I can't help you more on the topic of syncing phone and computer, this is beyond my AppSheet skills here. I will stop on this topic, if you got the answer you were looking for, this is good from my point of view.

View solution in original post

14 REPLIES 14

Aurelien
Google Developer Expert
Google Developer Expert

Bonjour @AVista 

You have a type URL in AppSheet:

Aurelien_0-1676989983052.png

 

No need to use a Hyperlink expression, unless you are willing to send an email with a hyperlink inside.

For reference:

Column data types - AppSheet Help

Also:

Since it seems you wish to use Google Maps, if you have the address you can select the type Address. That will automatically create the action for opening a map view, with two action buttons: one for seeing the map, the other one for seeing the route to the destination.

Aurelien_1-1676990071173.png

 

 

Thank you for your reply,
I tested Address and URL, the link I make with the two columns in my sheet. The 1st column 'Link' and the 2nd column 'Place ID Place'
Link: https://www.google.com/maps/search/?api=1&query=Google&query_place_id=

Place Link ID: ChIJczdp8j2P2RIRcxHrS06tM84

To obtain in my my sheet a single establishment:

https://www.google.com/maps/search/?api=1&query=Google&query_place_id=ChIJczdp8j2P2RIRcxHrS06tM84

I tried in AppSheet, Url, Address; I can't find a way to make with my two fields the URL that returns to Google Maps.

AVista_0-1676997339417.png

Thank you for your help

Here are my two fields with which I want to make a URL of this type:

AVista_0-1677000385186.png

https://www.google.com/maps/search/?api=1&query=Google&query_place_id=
ChIJczdp8j2P2RIRcxHrS06tM84

I'm not sure of understanding properly.

You mean, you wish to get the url in the sheets, or having it available in the app?

In Google Sheets, I build a link with two cells to get this link: https://www.google.com/maps/search/?api=1&query=Google&query_place_id= concatenate with Place ID column Place: ChIJudY0my1q2hIRy1EtRlovLIo

I wanted to do it without a hidden column in Sheet to get the full link. and In APPSHEET I wanted to do the same thing, I found by doing an action with a menu button as shown in my print screen.

AVista_0-1677079432536.png

 

 

ok. I suggest you make it simple ๐Ÿ™‚

Add a new virtual column, type: URL.

Aurelien_0-1677085170532.png

Expression: 

"https://www.google.com/maps/search/?api=1&query=Google&query_place_id=" & [Place ID]

 That will automatically create an action button for the hyperlink part.

Good morning,
Thank you for your comeback. As simple as that. Finally I have two solutions. What if I have an empty Place ID? not to display the button

Yes, and for the location this is as simple also: just provide the address, the Google Maps button will be available automatically.


@Aurelien wrote:

Also:

Since it seems you wish to use Google Maps, if you have the address you can select the type Address. That will automatically create the action for opening a map view, with two action buttons: one for seeing the map, the other one for seeing the route to the destination.

Aurelien_1-1676990071173.png


Moreover, if the address is empty, then the google maps button won't be displayed.


@AVista wrote:

What if I have an empty Place ID? not to display the button


You may want to add a show_if condition to your column: 

ISNOTBLANK([Place ID])

Aurelien_1-1677137819802.png

 

Aurelien_0-1677137799869.png

Aurelien_2-1677137842221.png

For reference:

Conditionally show or hide a column value (Show_If) - AppSheet Help

 

Thank you for your valuable help and answers.
I take the opportunity to ask you another question regarding please, because I did not find anything on the subject.

I would like to return my Tel field, when I work on a Windows 10 = PC, and my smartphone is synchronized with the 'MOBILE CONNECTE' application

How to make a direct call from the pc to MOBILE CONNECTE?

always simple: just set the phone column with type Phone ๐Ÿ™‚

When I want to call on my Windows PC,

AVista_0-1677149045235.png

Appsheet directly opens the default browser in my case Chrone and only offers me Skype.

AVista_1-1677149210949.png

I would like to open the application (Mobile Connected) of Windows on my computer?

AVista_2-1677149649655.png

Is it possible ? Thank you

Aurelien
Google Developer Expert
Google Developer Expert

Hi @AVista 

would that do the job?

Aurelien_0-1677150844944.png

I droped using mobile connectรฉ as I went out of patience on my own computer a while ago ^^'

 

Google Voice, is not available in France.
For the moment I do not want to use Skype, and as my smartphone is synchronized with the PC Widnows I would like to use from Appsheet (MOBILE CONNECTED)?
I can't find what to do?

Aurelien
Google Developer Expert
Google Developer Expert

What if you use your AppSheet mobile app directly?

Unfortunately I can't help you more on the topic of syncing phone and computer, this is beyond my AppSheet skills here. I will stop on this topic, if you got the answer you were looking for, this is good from my point of view.

Top Labels in this Space