diff --git a/sandbox/grist/functions/lookup.py b/sandbox/grist/functions/lookup.py index 9f6989d4..7297e29b 100644 --- a/sandbox/grist/functions/lookup.py +++ b/sandbox/grist/functions/lookup.py @@ -153,8 +153,8 @@ def VLOOKUP(table, **field_value_pairs): class _Contains(namedtuple("_Contains", "value")): """ - Use this marker with `Table.lookupRecords` to find records - where a column contains the given value, e.g: + Use this marker with [UserTable.lookupRecords](#lookuprecords) to find records + where a field of a list type (such as `Choice List` or `Reference List`) contains the given value, e.g: MoviesTable.lookupRecords(genre=CONTAINS("Drama")) diff --git a/sandbox/grist/table.py b/sandbox/grist/table.py index ea30db4b..202c2aed 100644 --- a/sandbox/grist/table.py +++ b/sandbox/grist/table.py @@ -89,6 +89,9 @@ class UserTable(object): ``` See [RecordSet](#recordset) for useful properties offered by the returned object. + + See [CONTAINS](#contains) for an example utilizing `UserTable.lookupRecords` to find records where + a field of a list type (such as `Choice List` or `Reference List`) contains the given value. """ return self.table.lookup_records(**field_value_pairs)