Go to another view And Go to a external Website

In the appsheet I created a table called MENU

TABLE FIELDS:

IDMENU - Type text
MENU - Type text
ICONE - Type Image
VISUALIZACAO - Type text

VIEW: MENU
For this data: MENU
View type: Galery
Event Actions: IR_MENU

ACTIONS:

Action name: IR_MENU
For a record of this table: MENU
Do this: App: go to another view within this app
Target: LINKTOVIEW([VISUALIZACAO])
Position: Inline
Attach to column: VISUALIZACAO

In other words, in VISUALIZACAO there will be the name of other views, and when I select one of the options, I will be directed to the view I defined.

However, currently in my Menu table I have 3 lines with information, that is, there are 3 buttons in my MENU view.

Two test buttons will direct to the views I defined. But I wanted to do something different with the third button: I wanted it to direct me to a link on the internet.

 

IDMENUMENUICONEVISUALIZACAO
1QuestionรกrioMENU_Images/p6Ayf_ALFj4KIpbj0mYFRf.ICONE.181733.pngQS_Dados
2MรฉdicoMENU_Images/BZ3XgtreE74bQmUEHlR_Hc.ICONE.181839.pngMรฉdico_Dados
3GoogleMENU_Images/jMp4p6JGmG4Q6cBDciR6F7.ICONE.185621.pnghttps://www.google.com

Example: I want the third button to take me to the link www.google.com when I click on it.

How do I do this?

Solved Solved
0 4 154
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Miguel_Azevedo 

Here is my suggestion:

- create two columns, one for internal view name, the other for external link

- use a sequence of actions, one to open the internal view name, the other to open the external link

Here is in image my suggestion (tested, it works)

Table structure

 

Aurelien_1-1749709632988.png

Table settings (add a virtual column)

Aurelien_2-1749709662234.png

with expression:

"#view="&[internal_viewname]

Action setting

Aurelien_3-1749709767807.png

View setting

 

Aurelien_5-1749709836398.png

Result

Screen Recording 2025-06-12 at 08.32.57.91 AM.gif

โ€ƒ

 

View solution in original post

4 REPLIES 4

here's how I do it

I have 3 actions for MENU

action "open_url"
do this : "external : go to a website"
target : visualizacao
position : hide
behaviour only if this condition = true
test if visualizacao is a valid link

action "open_view"
do this : "linktoview"
target : LINKTOVIEW([VISUALIZACAO])
position : hide
behaviour only if this condition = true
test if visualizacao is not a valid link

action IR MENU :
do this : "Grouped : execute a sequence of action"
action1 : "open_url"
action2 : "open_view"
Position : Inline
Attached to column : VISUALIZACAO

there are various ways of testing whether it's a url or not. 

 

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Miguel_Azevedo 

Here is my suggestion:

- create two columns, one for internal view name, the other for external link

- use a sequence of actions, one to open the internal view name, the other to open the external link

Here is in image my suggestion (tested, it works)

Table structure

 

Aurelien_1-1749709632988.png

Table settings (add a virtual column)

Aurelien_2-1749709662234.png

with expression:

"#view="&[internal_viewname]

Action setting

Aurelien_3-1749709767807.png

View setting

 

Aurelien_5-1749709836398.png

Result

Screen Recording 2025-06-12 at 08.32.57.91 AM.gif

โ€ƒ

 

Hi @Aurelien 

It worked really well this way, thank you very much! 

Aurelien
Google Developer Expert
Google Developer Expert

You are welcome ! ๐Ÿ™‚

Top Labels in this Space