Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.

Is there a way to toggle between viewtypes in the app?

I am building a database of Actors with many attributes such as "Languages Spoken", "Availability" etc.

As a user of the app, (that is, in the UI I will interact with in the deployed app) it is very helpful for me to able to see this in the "Table" viewtype when I am looking for specific things. However, sometimes once I have created a filter, say for "Languages Spoken = English" I would love to be able to switch to a "Gallery" viewtype and see all the photos related to each actor who speaks english. I know it is possible to build two separate views in the backend but this is meant to be a toggle that can be used by the app user. What would you recommend is the best way to achieve this?

Also, to add a bit more info: this app has a lot of other views/tables that aren't related to the actors, so it wouldn't make too much sense to crowd the menu with a bunch of different views of the same table.

Thanks!

0 6 87
6 REPLIES 6

Please take a look at slices and views based on slices.

Slices: The Essentials - AppSheet Help

Slice row filter conditions - AppSheet Help

Also please take a look at the sample app, slice based on user inputs

Slice based on user input

 

 

Thanks for the info! Do you know if this allow you to change the viewtype of the data you are looking at?

Yes, you can select view type in the view settings. So by toggling, here it means selecting different views based on the underlying slice data. So for English speaking actors, you may have a view called say "English Speaking"

Suvrutt_Gurjar_0-1666681795499.png

 

Sorry I meant to ask if there was a way to do this in the app front end, as a user, not in the backend as a developer.

My apologies I realize that wasn't clear from the beginning!

Oh okay. Please elaborate your concept of "front end  as a user"

In general, in AppSheet a user can switch between various views b y selecting them through menu or primary view options or through other similar approaches. 

Top Labels in this Space