Skip to main content
Version: 1.x.x

Getting Related Records

quip.apps.Record.prototype

getParentRecord

Function() => quip.apps.Record | undefined

Returns the Record object that contains either this Record as a property or, if this Record lives within a RecordList, returns the Record containing this RecordList as a property.

Only returns undefined for the RootRecord.

getPreviousSibling

Function() => quip.apps.Record | undefined

Returns the sibling Record that precedes this one if this Record is in a RecordList. Returns undefined if this Record is not in a RecordList or is the first Record in the list.

getNextSibling

Function() => quip.apps.Record | undefined

Returns the sibling Record that follows this one if this Record is in a RecordList. Returns undefined if this Record is not in a RecordList or is the last Record in the list.

getContainingList

Function() => quip.apps.RecordList | undefined

If this Record is contained in a RecordList, this returns the RecordList.