Skip to main content

stack

Last updated 31/01/2024

Five automatically filters forms for you, however, you can use the stack property on the Five object in your queries and functions to filter and manipulate data for your requirements.

The stack property on the Five object works at the database-level and returns the primary keys of the associated tables for the forms stacked above the current action in the format of five.stack.<tableId>.<primaryKey>. These keys can be used to filter the records that are associated with the parent form.

During the life time of your application a user will open records, select form records, open subforms, and drill down into related forms. The stack property will keep track of associated data based on the tables related to the forms the user is currently working with.

Examples

stack