Row filter condition to second table

Hi,
I did not find a proper answer of my problem...
I have two tables - on of the table contains data to children and the other table contains timestamps and other stuff for child care.
Here an example of the first table:

ChildIDVornameNachnameEintrittsdatumAustrittsdatumGeburtsdatumBetreuungspersonEmail
svsdvsbMaxMustermann01.01.2022 17.05.2013susi.mayer@test.xy

The second table is this example

TimeIDVornameKommenGehen...
cssdviubMax08:0012:25 

The column "Vorname" is a reference to the first table.
Now my problem...
I have created a slice for the first and for the second table to show only this row, where the "Austritt" is empty. For the child table the slice is working and I can use it within a view. The row filter condition is "AND((USEREMAIL() = [BetreuungspersonEmail]), (ISBLANK([Austrittsdatum])))".
The row condition within the second table does not work, although appsheet tells me that it has been correctly defined.
The condition is: "AND((USEREMAIL() = [Vorname].[BetreuungspersonEmail]), ISBLANK([Vorname].[Austrittsdatum]))"
I see within the view, where I have linked the slice from the second table all the children no matter whether with or without "Austrittsdatum" and no matter whether the registered user matches the email address.
I hope you can hep me.
thx.

Solved Solved
0 4 134
1 ACCEPTED SOLUTION

4 REPLIES 4

Ref columns need to contain the key value of the referenced record. Presumably the key value would be the column with "id" in its name, not "vorname". In other words, change "Max" in the 2nd table, to "svsdvsb".

https://help.appsheet.com/en/articles/961426-references-between-tables

sorry, I need to ask you again...
I have build the two tables new and inserted some default values for testing:

ChildIDFirstNameLastNameEntryDateExitDateMotherFatherBirthDayAgeCareHoursRemarksCareGiverCareGiverEmail
f5bc683cMaxMeier29.07.2000 WomanMan01.01.19952820 Martin Hubertest@huber.de
36787be8LisaTest01.07.2020 WomanMan01.01.20002380 Susi Schmidtsusi@schmidt.de

When I start the slice view for the children table with the row filter condition: 
AND((USEREMAIL() = [CareGiverEmail]), (ISBLANK([ExitDate])))"
with the logged in user test@huber.de I only see the child Max Meier.

When I change to the logged in user susi@schmidt.de I only see the child Lisa Test.
That's exactly what I want.

But the slice view for the timesheet table I have also build with a row filter condition like: AND((USEREMAIL() = [ChildID].[CareGiverEmail]), (ISBLANK([ChildID].[ExitDate])))
When I try to insert new values in the Timesheet view based on the data of the timesheet slice, I get all the children that are in the table, but I only want to see the child for the logged in user (based on the email address).
I hope I've explained clearly what I want exactly...

Here the structure of the second table called timesheet:

TimeIDChildIDDateCome1Go1TimeBlock2Come2Go2TimeBlock3Come3Go3DefaultDurationWeekendWeekendDurationToLateToLateDurationCareGiverSickCareGiverSickDurationBreakfastMorningSnackLunchAfternoonSnackDinnerOvernightStayOvernightStayDurationKilometerVariousRemarks
36d2eb85f5bc683c28.07.202306:45:0021:20:00FALSE     14,5FALSE0FALSE0FALSE0TRUETRUETRUETRUETRUEFALSE015

And here are some screenshots from the views:
children viewchildren viewtimesheet viewtimesheet view

What is the problem, that I get all the children and not only the child what I need to see with the logged in user email address.
Thx for your help.

That's exactly what I need, but I need to implement the use the Drop-down on a Ref column... thx

 https://support.google.com/appsheet/answer/10107321

Top Labels in this Space