Re-use main Detail view with multiple slices

It is a fairly common scenario to make a dashboard view that includes sub-views of various slices of the same table. A common case is lists of ToDo items; all ToDos, ToDos assigned to the current user, ToDos that need assigned, etc.

In these cases you may want to always use the same Detail view that you edited for the main table, especially if you made a lot of customizations in that Detail view (header columns, quick edit, column orderโ€ฆ). This would be instead of defining a Detail view for each individual slice.

To do so, first make an Action for the main table:

App: go to another view within this app
LINKTOROW([key column] , โ€œmain detail view nameโ€
Appearance: Do Not Display

Then for each table/deck sub-view for each slice change the Behavior->Event Actions->Row Selected from โ€œAutoโ€ to your newly created action.

20 16 2,313
  • UX
16 REPLIES 16

Hi Thank you

That make sense. I hadnโ€™t thought of that.

Phil

Thanks for the tips. I have tried this, then all swipe actions (left & right) do not belong to its slice filter anymore. It is skipping along rows of the main table.

May be this is a trade off.

Regards,

Yah I suppose that would be the case. I thought there was a Feature Request post to expand the CONTEXT() expression to use a parentโ€™s context, which could help in this case. I cannot find such a post right now though.

I donโ€™t know if we can use LINKTOFILTEREDVIEW for this. Another thing is that if we use this trick we still can not delete all default detail views that belong to their slices. And yes, it a tedious job to customize each individual detail view. AppSheet is not object-oriented.

Hey @Swoopy  / @Marc_Dillon  - just curious if you could expand this a bit. I'm not sure I understand the loss of functionality. 

Why can't the table sub-view for the slice still specify whatever left and right swipe actions are desired, even if the selected action links back to the parent view? 

Thanks!

 

I'm afraid I can't. I read these posts a few times now, and I honestly have no clue what swoopy is referring to anymore, or what I thought I was responding to 2.5 years ago.

Ha! Ok, I'll let you know if I ever figure it out, since I'm going with your trick and it's been great so far. 

Thanks a lot Marc. 

Eventhough you came from a Slice, the detail view points to the whole dataset, so the slideshow buttons will access all the rows. You may want to use this trick when you have slideshow turned off or a duplicate view just for this purpose

Basic understanding for detail views against slices/tables.

1.Each slice/table has its own detail view (as seen separately on UX). In other words, each detail view has its parent slice/table.

2.A detail view is swipable ONLY through its parent slice/table's rows.

3.Every detail view (of any parent slices/tables) can be freely referred in action's LINKTOVIEW() and LINKTOFILTEREDVIEW() but the swipe is still tied to the parent slice/table's rows, NOT tied to the parent view/slice/table the action is tapped.

So the idea of re-using detail views is not new, even me was ever using it. It makes things a bit easier for developer but confuses users and destroys user experience.

To not confuse users from which table/slice they are currently in, the detail views of parent tables/slices are still required. Or use this trick when you have slideshow turned off like @SkrOYC suggestion.

By the way, re-using form views doesn't destroying user experience.

Ahhh! Thanks @Swoopy and @SkrOYC! That all makes a lot of sense. I haven't been using slideshow functionality, and never noticed. 

For what it's worth in case others get confused, I was confused by "swipable" because I thought you were referring to action behaviors on the parent view I had (in my case a Deck). 

I hadn't used or played with slideshow stuff - and I certainly hadn't realized that from the detail view you could use swipe gestures to slideshow through the set. 

Thanks for the clarifications! Makes sense. 

My current thinking is to use Marc's trick for now, and once my development settles down and my app is more "steady state", come back and remove the Links and put in the proper detail views for each slice.

That way hopefully I don't end up having to make lots of changes a bunch of times on each one as develop. 

Thanks again!

I would say a well-designed working app (on AppSheet) requires at least 1,000+ editing, including the retouch of detail & form views dedicated for their slices/tables.

Does anyone know why some view (like the Card view) do not offer such a customization of the clicking behavior?

@Marc_Dillon , unfortunately, your suggestion to reuse existing views does not do the trick in all casesโ€ฆ For some reason that I fail to understand, certain view types to not offer such customization of the click.

  • The Table view does, butโ€ฆ
  • The Card view doesnโ€™t.

Although both go to the related detail view when clicking the row/card (if the behavior is not customized).

I would love to see all views offering a โ€œon-clickโ€ behavior offer a customization of the behavior.
Could the AppSheet team weigh in?

Thanks!

I just discovered this and it's so great! Thanks for the tip. Thankfully I only made it through duplicating one view before I went looking for a better way. 


@billyfw wrote:

My current thinking is to use Marc's trick for now, and once my development settles down and my app is more "steady state", come back and remove the Links and put in the proper detail views for each slice.


If you plan to do this after the app launch, users may be confused by the changes, so be aware of it. I bet your apps need editing after launch and this detail view retouching needs to be done again and again. This is a pain in the arse in the world of AppSheet. 

Fair point. Thanks for all the color and perspective guys!

If you use the slideshow mode:
This self made "Go to details" action has 
negative side effects comparing the **auto** action:

  • It looses the ref connection to the parent
  • It looses sorting and grouping
  • It looses the filter condition

Please see my post for more information and some solutions:

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Row-Selected-Action-LINKTOROW-vs-auto/td-p/46133...

Top Labels in this Space