AB#129357 - Enable calculated fields to select from a child resource and enable sorting and filtering by those calculated fields#2857
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.22.0](v2.21.1...v2.22.0) (2026-04-13) ### Bug Fixes * clean resources field on clone ([#2836](#2836)) ([6b27fe8](6b27fe8)), closes [AB#118658](https://github.com/AB/issues/118658) * Custom adorners for panel questions without elements would break form edition ([d3dd7c4](d3dd7c4)), closes [AB#120779](https://github.com/AB/issues/120779) * custom survey methods using record not always working ([#2834](#2834)) ([2ff86f8](2ff86f8)), closes [Ab#123067](https://github.com/Ab/issues/123067) * issue with people dropdown / tagbox display ([46ee9c4](46ee9c4)) * Remove button to delete users when displaying auto assigned users ([#2840](#2840)) ([365ea0e](365ea0e)), closes [AB#125619](https://github.com/AB/issues/125619) ### Features * Add lowercase & uppercase methods to widget templating ([#2827](#2827)) ([8db5524](8db5524)), closes [AB#122364](https://github.com/AB/issues/122364) * Admins can configure auto redirection after cloning from dashboard ([463ea7a](463ea7a)), closes [AB#118658](https://github.com/AB/issues/118658) * Allow iterating through records in a text widget ([#2824](#2824)) ([b8928ee](b8928ee)), closes [AB#121364](https://github.com/AB/issues/121364) * allow to replace any field in widget filters ([#2820](#2820)) ([335bb57](335bb57)), closes [AB#120295](https://github.com/AB/issues/120295) * Can build custom action buttons in grids ([#2839](#2839)) ([6758be9](6758be9)) * can configure pre filling on select display only resources ([#2832](#2832)) ([f8fb972](f8fb972)), closes [AB#121363](https://github.com/AB/issues/121363) * Display only resources grid can now be emptied based on condition ([#2846](#2846)) ([090bf3f](090bf3f)) * Display only resources questions ([#2831](#2831)) ([e2c1f31](e2c1f31)), closes [AB#122462](https://github.com/AB/issues/122462) * Enable menu and account on one line, and icon-only menu items ([#2826](#2826)) ([b6c0082](b6c0082)), closes [AB#121668](https://github.com/AB/issues/121668) * New expression field to set values on complete ([#2837](#2837)) ([3d940ba](3d940ba)), closes [AB#124987](https://github.com/AB/issues/124987) * People picker in forms ([#2833](#2833)) ([bd6af42](bd6af42)), closes [AB#68534](https://github.com/AB/issues/68534) * When there is only one sub-menu item assigned to the current role, hide the menu ([#2830](#2830)) ([d66745d](d66745d)), closes [AB#122254](https://github.com/AB/issues/122254)
…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 )