WAITING_LIST with columns: waitingListID , memberFirstName , Related VISIBLEs <VC, list>
VISIBLE_LIST with columns: visibleID , userID , waitingListID <ref to WAITING LIST, IsAPartOf>, visible <Y/N>
The intention is to use VISIBLE_LIST to constrain a slice of WAITING_LIST such that if the user has expressed a visibility preference for a waiting list item (ie visible = TRUE) it is included in the slice.
VISIBLE_LIST can contain none, one or many entries per userID per waitingListID. I only want to take the most recent entry for any userID / waitingListID combination (ie row 00B).
My challenge is I can’t figure out how to correctly constrain the WAITING_LIST slice. I’ve tried lots of MAXROW, SELECT, IN, INDEX etc options but they either don’t return a Yes/No or don’t return the desired rows.
Could someone help guide me in the use of Related tables, how to refer to the “child” values and how to select from multiple child values etc. I feel this is core to Appsheet and should be something - after many months of using it - I should understand more clearly… but, it’s just not landing for me. Thanks in advance!
What is the best way to include other conditions in the slice filter expression? ie such it can only include [Related VISIBLEs].[userID] .
I quickly tried the following to update the Slice, but it didn’t seem to give the expected result (although I’m double checking I have the userID part correct in the USER table). Am I heading in the right direction?
Sorry, yes - that works fine.
However, my intention is personalise the filter/view to the user.
Your slice filter (correctly) returns the most recent entry from [Related VISIBLEs].
but I need to refine that to return the most recent entry for the current user only.
The VISIBLE_LIST includes [userID] and [visible] columns. I need to refine the slice filter expression to return a row where [userID] = INDEX(myProfile[userID],1) . myProfile is a slice of my user table returning the current user profile only.
For example if I expand the VISIBLE_LIST table a bit and we consider waitingListID = 001…
visibleID
userID
waitingListID
visible
00A
001A
001
FALSE
00B
001A
001
TRUE
00C
002B
002
TRUE
00D
003C
003
TRUE
00E
002B
001
FALSE
For userID=001A, the slice filter should return TRUE (row 00B)
For userID=002B, the slice filter should return FALSE (row 00E)
Hopefully that helps clarify my challenge. I need to include multiple conditions in the slice filter.
There isn’t a direct tie between the two tables.
I’m following the guidance on conforming apps to users here.
There’s nothing to link the tables.