AB#129357 - Enable calculated fields to select from a child resource and enable sorting and filtering by those calculated fields#1230
Conversation
--------- Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Jose L. Garcia <42015332+Joselgc1@users.noreply.github.com>
# [2.16.0](v2.15.0...v2.16.0) (2026-04-13) ### Bug Fixes * Editing record with fields not defined in resource could fail ([#1217](#1217)) ([480929c](480929c)), closes [AB#125221](https://github.com/AB/issues/125221) ### Features * add clone record action in dashboards ([#1208](#1208)) ([43559db](43559db)), closes [AB#118658](https://github.com/AB/issues/118658) * Admins can configure auto redirection after cloning from dashboard ([#1212](#1212)) ([9de1a8c](9de1a8c)), closes [AB#118658](https://github.com/AB/issues/118658) * Display only resources question ([#1214](#1214)) ([b9402aa](b9402aa)), closes [AB#122462](https://github.com/AB/issues/122462) * Enable menu and account on one line, and icon-only menu items ([#1213](#1213)) ([30345c4](30345c4)), closes [AB#121668](https://github.com/AB/issues/121668) * People picker in forms ([#1216](#1216)) ([544b5ab](544b5ab)), closes [AB#68534](https://github.com/AB/issues/68534)
…ource and enable sorting and filtering by those calculated fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Builds on top of AB#128193. This change adds a new related-child calculated field syntax. For example, {{data.teststatus(first: 1, sortField: "grade", sortOrder: "desc").grade}}. It wires it into the backend aggregation pipeline early enough for parent grids and cards to display, sort, and filter on it, preserves the newer :text display-mode calculated field behavior, and also updates the Back Office editor autocomplete so users can discover both raw/text field placeholders and reverse child relation selectors.
How to use: create a child resource and form, add a resource field pointing to the parent resource, set a unique relatedName on that field, create child records linked to parent records, then add a calculated field on the parent resource using {{data.(first: 1, sortField: "", sortOrder: "desc").}} and display it in the parent grid or card.
Useful links
Type of change
Checklist:
( * == Mandatory )