I have an an app that tracks production times in a small ceramic studio.
The user first makes a ceramic task. Then she adds a ceramic line where she selects a ceramic item from the ceramic table via choice component.
She’ll add up to +10 ceramics lines pr task.
The problem is that quite often she accidentally adds the same ceramic twice under the same task - which makes the system double count.
So I’ve been trying to figure out how I filter out ceramics in the choice component which already has been added to the Task so she can’t select it twice within the same task.
I’ve set it up so I have a three tables:
- Ceramic table
- Ceramic Task Table
- Ceramic lines table
I have tried to make a relationship field in the Ceramics table between the individual ceramics and the Task table. My thinking was then to filter out all the ceramics where the task already exist. However I can only put a filter on the choice component which checks if the relationship field is empty / not empty and not if it contains a specific relationship.
Does anyone know how to go about this?