I have done this before but now it won’t work. Maybe my new document’s master data is corrupted somehow because I copied and pasted from another document?
There seems to be some magical extra step needed to get the summary table to act as a filter. I cannot find it anywhere in the documentation when searching for selector.
Here is the code view of the source table and summary table where the selector won’t work:
import grist from functions import * # global uppercase functions import datetime, math, re # modules commonly needed in formulas @grist.UserTable class Routine_Master_List: Frequency = grist.Choice() Item = grist.Text() Boat = grist.Choice() class _Summary: @grist.formulaType(grist.ReferenceList('Routine_Master_List')) def group(rec, table): return table.getSummarySourceGroup(rec) @grist.formulaType(grist.Int()) def count(rec, table): return len(rec.group)